Documentation
¶
Index ¶
- Variables
- type Bind
- func (b *Bind) BatchSize() int
- func (b *Bind) Close() error
- func (b *Bind) GetHost() host.Host
- func (b *Bind) GetRoutingDiscovery() *drouting.RoutingDiscovery
- func (b *Bind) Open(port uint16) (fns []conn.ReceiveFunc, actualPort uint16, err error)
- func (b *Bind) ParseEndpoint(pubkey string) (conn.Endpoint, error)
- func (b *Bind) Send(bufs [][]byte, ep conn.Endpoint) error
- func (b *Bind) SetMark(mark uint32) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBindNoPubkey = errors.New("记得为 libp2p bind 设置Pubkey")
View Source
var ErrEndpointImpl = errors.New("endpoint is not wgortc.Endpoint")
Functions ¶
This section is empty.
Types ¶
type Bind ¶
type Bind struct { Pubkey string // contains filtered or unexported fields }
func (*Bind) GetRoutingDiscovery ¶
func (b *Bind) GetRoutingDiscovery() *drouting.RoutingDiscovery
Click to show internal directories.
Click to hide internal directories.