Documentation ¶
Index ¶
- type Client
- func (c *Client) Allow(ctx context.Context, peerID peer.ID) error
- func (c *Client) Block(ctx context.Context, peerID peer.ID) error
- func (c *Client) ImportFromCidList(ctx context.Context, fileName string, provID peer.ID, ...) error
- func (c *Client) ImportFromManifest(ctx context.Context, fileName string, provID peer.ID, ...) error
- func (c *Client) ImportProviders(ctx context.Context, fromURL *url.URL) error
- func (c *Client) ListLogSubSystems(ctx context.Context) ([]string, error)
- func (c *Client) ReloadConfig(ctx context.Context) error
- func (c *Client) SetLogLevels(ctx context.Context, sysLvl map[string]string) error
- func (c *Client) Sync(ctx context.Context, peerID peer.ID, peerAddr multiaddr.Multiaddr, depth int64, ...) 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 finder API,
func New ¶
func New(baseURL string, options ...httpclient.Option) (*Client, error)
New creates a new admin HTTP client.
func (*Client) Allow ¶
Allow configures the indexer to allow the peer to publish messages and provide content.
func (*Client) Block ¶
Block configures indexer to block the peer from publishing messages and providing content.
func (*Client) ImportFromCidList ¶
func (c *Client) ImportFromCidList(ctx context.Context, fileName string, provID peer.ID, contextID, metadata []byte) error
ImportFromCidList process entries from a cidlist and imprts it into the indexer.
func (*Client) ImportFromManifest ¶
func (c *Client) ImportFromManifest(ctx context.Context, fileName string, provID peer.ID, contextID, metadata []byte) error
ImportFromManifest processes entries from manifest and imports them into the indexer.
func (*Client) ImportProviders ¶
ImportProviders
func (*Client) ListLogSubSystems ¶
func (*Client) ReloadConfig ¶
ReloadConfig reloads reloadable parts of the configuration file.
func (*Client) SetLogLevels ¶
Click to show internal directories.
Click to hide internal directories.