Documentation
¶
Index ¶
- type BlankHost
- func (bh *BlankHost) Addrs() []ma.Multiaddr
- func (bh *BlankHost) Close() error
- func (bh *BlankHost) ConnManager() connmgr.ConnManager
- func (bh *BlankHost) Connect(ctx context.Context, pi core.PeerAddrInfo) error
- func (bh *BlankHost) ID() core.PeerID
- func (bh *BlankHost) Mux() protocol.Switch
- func (bh *BlankHost) Network() core.Network
- func (bh *BlankHost) NewStream(ctx context.Context, p core.PeerID, protos ...core.ProtocolID) (core.Stream, error)
- func (bh *BlankHost) Peerstore() pstore.Peerstore
- func (bh *BlankHost) RemoveStreamHandler(p core.ProtocolID)
- func (bh *BlankHost) SetStreamHandler(pid core.ProtocolID, handler network.StreamHandler)
- func (bh *BlankHost) SetStreamHandlerMatch(pid core.ProtocolID, m func(string) bool, handler network.StreamHandler)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlankHost ¶
type BlankHost struct {
// contains filtered or unexported fields
}
BlankHost is the thinnest implementation of the host.Host interface
func NewBlankHost ¶
func (*BlankHost) ConnManager ¶
func (bh *BlankHost) ConnManager() connmgr.ConnManager
func (*BlankHost) Network ¶
TODO: also not sure this fits... Might be better ways around this (leaky abstractions)
func (*BlankHost) RemoveStreamHandler ¶
func (bh *BlankHost) RemoveStreamHandler(p core.ProtocolID)
func (*BlankHost) SetStreamHandler ¶
func (bh *BlankHost) SetStreamHandler(pid core.ProtocolID, handler network.StreamHandler)
func (*BlankHost) SetStreamHandlerMatch ¶
func (bh *BlankHost) SetStreamHandlerMatch(pid core.ProtocolID, m func(string) bool, handler network.StreamHandler)
Click to show internal directories.
Click to hide internal directories.