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)
/* sort by: | */
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 WithEventBus(eventBus event.Bus) Option