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