Help us shape the future of Go! Take the 2026 Go Developer Survey

model

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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
}

func (*Protocol) MarshalCBOR

func (t *Protocol) MarshalCBOR(w io.Writer) error

func (*Protocol) UnmarshalCBOR

func (t *Protocol) UnmarshalCBOR(r io.Reader) (err error)

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL