Documentation ¶
Index ¶
- type Client
- func (c *Client) Allow(ctx context.Context, peerID peer.ID) error
- func (c *Client) Assign(ctx context.Context, peerID peer.ID) error
- func (c *Client) Block(ctx context.Context, peerID peer.ID) error
- func (c *Client) Freeze(ctx context.Context) error
- func (c *Client) GetPendingSyncs(ctx context.Context) ([]string, error)
- func (c *Client) Handoff(ctx context.Context, publisherID, frozenID peer.ID, frozenURL string) 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) ListAssignedPeers(ctx context.Context) (map[peer.ID]peer.ID, error)
- func (c *Client) ListLogSubSystems(ctx context.Context) ([]string, error)
- func (c *Client) ListPreferredPeers(ctx context.Context) ([]peer.ID, error)
- func (c *Client) ReloadConfig(ctx context.Context) error
- func (c *Client) SetLogLevels(ctx context.Context, sysLvl map[string]string) error
- func (c *Client) Status(ctx context.Context) (*model.Status, error)
- func (c *Client) Sync(ctx context.Context, peerID peer.ID, peerAddr multiaddr.Multiaddr, depth int64, ...) error
- func (c *Client) Unassign(ctx context.Context, peerID peer.ID) error
- type Option
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 (*Client) Allow ¶
Allow configures the indexer to allow the peer to publish messages and provide content.
func (*Client) Assign ¶
Assign assigns a publish to an indexer, when the indexer is configured to work with an assigner service.
func (*Client) Block ¶
Block configures indexer to block the peer from publishing messages and providing content.
func (*Client) GetPendingSyncs ¶
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) ListAssignedPeers ¶
ListAssignedPeers gets a list of explicitly allowed peers, if indexer is configured to work with an assigner service.
func (*Client) ListLogSubSystems ¶
func (*Client) ListPreferredPeers ¶
ListPreferredPeers gets a list of unassigned peers that the indexer has previously retrieved advertisements from.
func (*Client) ReloadConfig ¶
ReloadConfig reloads reloadable parts of the configuration file.