Documentation ¶
Index ¶
- type Handler
- func (h *Handler) Close()
- func (h *Handler) Find(mhashes []multihash.Multihash) (*model.FindResponse, error)
- func (h *Handler) GetProvider(providerID peer.ID) ([]byte, error)
- func (h *Handler) GetStats() ([]byte, error)
- func (h *Handler) ListProviders() ([]byte, error)
- func (h *Handler) RefreshStats()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶ added in v0.7.0
type Handler struct {
// contains filtered or unexported fields
}
handler provides request handling functionality for the find server that is common to all protocols.
func New ¶ added in v0.7.0
func New(indexer indexer.Interface, reg *registry.Registry, indexCounts *counter.IndexCounts) *Handler
func (*Handler) Find ¶ added in v0.7.0
func (h *Handler) Find(mhashes []multihash.Multihash) (*model.FindResponse, error)
Find reads from indexer core to populate a response from a list of multihashes.
func (*Handler) GetProvider ¶ added in v0.7.0
func (*Handler) ListProviders ¶ added in v0.7.0
func (*Handler) RefreshStats ¶ added in v0.7.0
func (h *Handler) RefreshStats()
Click to show internal directories.
Click to hide internal directories.