Documentation ¶
Index ¶
- type BlankHost
- func (bh *BlankHost) Addrs() []ma.Multiaddr
- func (bh *BlankHost) Close() error
- func (bh *BlankHost) ConnManager() ifconnmgr.ConnManager
- func (bh *BlankHost) Connect(ctx context.Context, pi pstore.PeerInfo) error
- func (bh *BlankHost) ID() peer.ID
- func (bh *BlankHost) Mux() *mstream.MultistreamMuxer
- func (bh *BlankHost) Network() inet.Network
- func (bh *BlankHost) NewStream(ctx context.Context, p peer.ID, protos ...protocol.ID) (inet.Stream, error)
- func (bh *BlankHost) Peerstore() pstore.Peerstore
- func (bh *BlankHost) RemoveStreamHandler(p protocol.ID)
- func (bh *BlankHost) SetStreamHandler(pid protocol.ID, handler inet.StreamHandler)
- func (bh *BlankHost) SetStreamHandlerMatch(pid protocol.ID, m func(string) bool, handler inet.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() ifconnmgr.ConnManager
func (*BlankHost) Mux ¶
func (bh *BlankHost) Mux() *mstream.MultistreamMuxer
TODO: i'm not sure this really needs to be here
func (*BlankHost) Network ¶
TODO: also not sure this fits... Might be better ways around this (leaky abstractions)
func (*BlankHost) RemoveStreamHandler ¶
func (*BlankHost) SetStreamHandler ¶
func (bh *BlankHost) SetStreamHandler(pid protocol.ID, handler inet.StreamHandler)
func (*BlankHost) SetStreamHandlerMatch ¶
Click to show internal directories.
Click to hide internal directories.