pubsub

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 16, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPubSub

func NewPubSub(ctx context.Context, p2pserver common.INetwork, chainid uint64) (common.IPubSub, error)

Types

type AmcPubSub

type AmcPubSub struct {
	// contains filtered or unexported fields
}

func (*AmcPubSub) GetTopics

func (m *AmcPubSub) GetTopics() []string

func (*AmcPubSub) JoinTopic

func (m *AmcPubSub) JoinTopic(topic string) (*pubsub.Topic, error)

func (*AmcPubSub) Publish

func (m *AmcPubSub) Publish(topic string, msg proto.Message) error

func (*AmcPubSub) Start

func (m *AmcPubSub) Start() error

func (*AmcPubSub) Subscription

func (m *AmcPubSub) Subscription(topic string) (*pubsub.Subscription, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL