Documentation ¶
Index ¶
Constants ¶
View Source
const ( // FinderProtocolID is the libp2p protocol that finder API uses FinderProtocolID protocol.ID = "/indexer/finder/0.0.1" // IngestProtocolID is the libp2p protocol that ingest API uses IngestProtocolID protocol.ID = "/indexer/ingest/0.0.1" )
Variables ¶
This section is empty.
Functions ¶
func DecodeError ¶
func EncodeError ¶
Types ¶
type ErrInvalidMetadata ¶
type ErrInvalidMetadata struct {
Message string
}
func (ErrInvalidMetadata) Error ¶
func (e ErrInvalidMetadata) Error() string
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
Error is the type of error used when it is necessary to convey a specific status code so that it can be handled correctly higher in the call stack.
For example, differentiating between a bad request and an internal server error allows a server to determine whether the error should be returned to a client or not.
type ErrorMessage ¶ added in v0.2.0
type Metadata ¶
type Metadata struct { // ProtocolID defines the protocol used for data retrieval. ProtocolID multicodec.Code // Data is specific to the identified protocol, and provides data, or a // link to data, necessary for retrieval. Data []byte }
Metadata is data that provides information about retrieving data for an index, from a particular provider.
func (Metadata) MarshalBinary ¶
MarshalBinary implements encoding.BinaryMarshaler.
func (*Metadata) UnmarshalBinary ¶
UnmarshalBinary implements encoding.BinaryUnmarshaler.
Directories ¶
Path | Synopsis |
---|---|
admin
|
|
finder
|
|
ingest
|
|
schema
Package schema defines the makeup of an advertisement.
|
Package schema defines the makeup of an advertisement. |
Package libp2pclient provides general libp2p client functionality This package supplies functionality to communicate raw data with libp2p peers, and is useful when building higher-level client that are responsible for processing the data send and and received using this package.
|
Package libp2pclient provides general libp2p client functionality This package supplies functionality to communicate raw data with libp2p peers, and is useful when building higher-level client that are responsible for processing the data send and and received using this package. |
Click to show internal directories.
Click to hide internal directories.