Documentation ¶
Index ¶
- type Client
- func (c *Client) GetProvider(ctx context.Context, providerID peer.ID) (*model.ProviderInfo, error)
- func (c *Client) IndexContent(ctx context.Context, providerID peer.ID, privateKey p2pcrypto.PrivKey, ...) error
- func (c *Client) ListProviders(ctx context.Context) ([]*model.ProviderInfo, error)
- func (c *Client) Register(ctx context.Context, providerID peer.ID, privateKey p2pcrypto.PrivKey, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is an http client for the indexer ingest API
func New ¶
func New(baseURL string, options ...httpclient.Option) (*Client, error)
New creates a new ingest http Client
func (*Client) GetProvider ¶
func (*Client) IndexContent ¶
func (*Client) ListProviders ¶
Click to show internal directories.
Click to hide internal directories.