Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDelegatedHTTP ¶
func NewDelegatedHTTP(url string) (contentrouting.Routing, error)
NewDelegatedHTTP makes a routing provider backed by an HTTP endpoint.
Types ¶
type HTTPRouter ¶
type HTTPRouter struct {
*finderhttpclient.Client
}
HTTPRouter contains the state for an active delegated HTTP client.
func (*HTTPRouter) FindProviders ¶
func (hr *HTTPRouter) FindProviders(ctx context.Context, c cid.Cid, _ ...contentrouting.RoutingOptions) <-chan contentrouting.RoutingRecord
FindProviders implements the content routing interface
Click to show internal directories.
Click to hide internal directories.