Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EpochToTime ¶
Types ¶
type DealState ¶
type DealState struct { DealID int32 `bson:"deal_id"` PieceCID string `bson:"piece_cid"` PieceSize int64 `bson:"piece_size"` Label string `bson:"label"` Verified bool `bson:"verified"` Client string `bson:"client"` Provider string `bson:"provider"` Expiration time.Time `bson:"expiration"` Start time.Time `bson:"start"` }
func (DealState) AgeInYears ¶
type Protocol ¶
type Protocol struct { // The name of the transport protocol eg "libp2p" or "http" Name string // The address of the endpoint in multiaddr format Addresses []abi.Multiaddrs }
type ProtocolName ¶
type ProtocolName string
const ( GraphSync ProtocolName = "GraphSync" Bitswap ProtocolName = "bitswap" HTTP ProtocolName = "http" HTTPS ProtocolName = "https" Libp2p ProtocolName = "libp2p" WS ProtocolName = "ws" WSS ProtocolName = "wss" )
type QueryResponse ¶
type QueryResponse struct {
Protocols []Protocol
}
func (*QueryResponse) MarshalCBOR ¶
func (t *QueryResponse) MarshalCBOR(w io.Writer) error
func (*QueryResponse) UnmarshalCBOR ¶
func (t *QueryResponse) UnmarshalCBOR(r io.Reader) (err error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.