Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface {
// Find queries for provider content records for a single multihash.
Find(context.Context, multihash.Multihash) (*model.FindResponse, error)
// FindBatch queries for provider content records for a batch of multihashes.
FindBatch(context.Context, []multihash.Multihash) (*model.FindResponse, error)
// GetProvider gets information about the provider identified by peer.ID.
GetProvider(context.Context, peer.ID) (*model.ProviderInfo, error)
// ListPrividers gets information about all providers known to the indexer.
ListProviders(ctx context.Context) ([]*model.ProviderInfo, error)
// GetStats get statistics for indexer.
GetStats(context.Context) (*model.Stats, error)
}
Interface is the interface implemented by all find clients.
Click to show internal directories.
Click to hide internal directories.