Documentation ¶
Index ¶
- Variables
- func Options() fx.Option
- type INet
- type IPubsuber
- type PubSub
- func (m *PubSub) AddrListen(ctx context.Context) (peer.AddrInfo, error)
- func (m *PubSub) Connect(ctx context.Context, p peer.AddrInfo) error
- func (m *PubSub) FindPeer(ctx context.Context, peerID peer.ID) (peer.AddrInfo, error)
- func (m *PubSub) GetTopic(topic string) (*pubsub.Topic, error)
- func (m *PubSub) Peers(ctx context.Context) ([]peer.AddrInfo, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrPubsubDisabled = errors.New("pubsub is disabled")
Functions ¶
Types ¶
type INet ¶
type IPubsuber ¶
func NewIPubsuber ¶
type PubSub ¶
type PubSub struct {
// contains filtered or unexported fields
}
func ProvidePubsub ¶
func ProvidePubsub(ctx context.Context, networkName types.NetworkName, net *config.Libp2pNetConfig) (*PubSub, error)
Click to show internal directories.
Click to hide internal directories.