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 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 ¶
Click to show internal directories.
Click to hide internal directories.