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) GetAllTelemetry(ctx context.Context) (map[string]rate.Rate, error)
- func (c *Client) GetPendingSyncs(ctx context.Context) ([]string, error)
- func (c *Client) GetTelemetry(ctx context.Context, providerID peer.ID) (rate.Rate, bool, error)
- func (c *Client) Handoff(ctx context.Context, publisherID, frozenID peer.ID, frozenURL string) 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) MarkAdProcessed(ctx context.Context, providerID peer.ID, adCid cid.Cid) 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) GetAllTelemetry ¶ added in v0.8.0
func (*Client) GetPendingSyncs ¶
func (*Client) GetTelemetry ¶ added in v0.8.0
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) MarkAdProcessed ¶ added in v0.8.10
func (*Client) ReloadConfig ¶
ReloadConfig reloads reloadable parts of the configuration file.