func NewThirdPartyLocator(client httprequest.Doer, cache *bakery.ThirdPartyStore) *ThirdPartyLocator {
	if cache == nil {
		cache = bakery.NewThirdPartyStore()
	}
	if client == nil {
		client = http.DefaultClient
	}
	return &ThirdPartyLocator{
		client: client,
		cache:  cache,
	}
}
// NewThirdPartyLocator returns a new third party
// locator that uses the given client to find
// information about third parties and
// uses the given cache as a backing.
//
// If cache is nil, a new cache will be created.
//
// If client is nil, http.DefaultClient will be used.
NewThirdPartyLocator returns a new third party
locator that uses the given client to find
information about third parties and
uses the given cache as a backing.

If cache is nil, a new cache will be created.

If client is nil, http.DefaultClient will be used.
// NewThirdPartyLocator returns a new third party // locator that uses the given client to find // information about third parties and // uses the given cache as a backing . // // If cache is nil a new cache will be created . // // If client is nil http . DefaultClient will be used .
func NewThirdPartyLocator(client httprequest.Doer, cache *bakery.ThirdPartyStore) *ThirdPartyLocator {
	if cache == nil {
		cache = bakery.NewThirdPartyStore()
	}
	if client == nil {
		client = http.DefaultClient
	}
	return &ThirdPartyLocator{
		client: client,
		cache:  cache,
	}
}
func NewThirdPartyLocator ( client httprequest . Doer , cache * bakery . ThirdPartyStore ) * ThirdPartyLocator { if cache == nil { cache = bakery . NewThirdPartyStore ( ) } if client == nil { client = http . DefaultClient } return & ThirdPartyLocator { client : client , cache : cache , } }
NewThirdPartyLocator returns a new third party
locator that uses the given client to find
information about third parties and
uses the given cache as a backing.
NewThirdPartyLocator returns a new third party locator that uses the given client to find information about third parties and uses the given cache as a backing .