package blankhost
Import Path
github.com/libp2p/go-libp2p/p2p/host/blank (on go.dev)
Dependency Relation
imports 16 packages, and imported by one package
Involved Source Files
blank.go
Package-Level Type Names (total 2)
BlankHost is the thinnest implementation of the host.Host interface
(*BlankHost) Addrs() []ma.Multiaddr
(*BlankHost) Close() error
(*BlankHost) ConnManager() connmgr.ConnManager
(*BlankHost) Connect(ctx context.Context, ai peer.AddrInfo) error
(*BlankHost) EventBus() event.Bus
(*BlankHost) ID() peer.ID
TODO: i'm not sure this really needs to be here
TODO: also not sure this fits... Might be better ways around this (leaky abstractions)
(*BlankHost) NewStream(ctx context.Context, p peer.ID, protos ...protocol.ID) (network.Stream, error)
(*BlankHost) Peerstore() peerstore.Peerstore
(*BlankHost) RemoveStreamHandler(pid protocol.ID)
(*BlankHost) SetStreamHandler(pid protocol.ID, handler network.StreamHandler)
(*BlankHost) SetStreamHandlerMatch(pid protocol.ID, m func(protocol.ID) bool, handler network.StreamHandler)
*BlankHost : github.com/libp2p/go-libp2p/core/host.Host
*BlankHost : github.com/prometheus/common/expfmt.Closer
*BlankHost : io.Closer
func NewBlankHost(n network.Network, options ...Option) *BlankHost
type Option = (func)
Package-Level Functions (total 3)
func NewBlankHost(n network.Network, options ...Option) *BlankHost func WithConnectionManager(cmgr connmgr.ConnManager) Option func WithEventBus(eventBus event.Bus) Option![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |