subpubtransport

package
v0.1.23 Latest Latest
Warning

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

Go to latest
Published: May 8, 2021 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SubPubContext

type SubPubContext struct {
	Sp     *SubPubHandle
	PeerID string
}

func (*SubPubContext) ConnectionType

func (sc *SubPubContext) ConnectionType() string

func (*SubPubContext) Send

func (sc *SubPubContext) Send(msg transports.Message) (err error)

type SubPubHandle

type SubPubHandle struct {
	Conn      *transports.Connection
	SubPub    *subpub.SubPub
	BootNodes []string
}

func (*SubPubHandle) AddNamespace

func (s *SubPubHandle) AddNamespace(namespace string) error

func (*SubPubHandle) AddPeer

func (s *SubPubHandle) AddPeer(peer string) error

func (*SubPubHandle) Address

func (s *SubPubHandle) Address() string

func (*SubPubHandle) ConnectionType

func (s *SubPubHandle) ConnectionType() string

func (*SubPubHandle) Init

func (*SubPubHandle) Listen

func (s *SubPubHandle) Listen(reciever chan<- transports.Message)

func (*SubPubHandle) Send

func (s *SubPubHandle) Send(msg transports.Message) error

func (*SubPubHandle) SendUnicast

func (s *SubPubHandle) SendUnicast(address string, msg transports.Message) error

func (*SubPubHandle) SetBootnodes

func (s *SubPubHandle) SetBootnodes(bootnodes []string)

func (*SubPubHandle) String

func (s *SubPubHandle) String() string

Jump to

Keyboard shortcuts

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