connection

package
v0.0.0-...-3a733ff Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

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

func New

func New(peers map[peerpb.PeerID]*transport.ExternalClient, logger logger.Logger) *Connection

func (*Connection) Run

func (c *Connection) Run()

func (*Connection) Send

func (c *Connection) Send(to peerpb.PeerID,
	ctx context.Context, cmd *commandpb.Command,
	resC chan *commandpb.CommandResult, errC chan peerpb.PeerID,
) error

func (*Connection) SendToAll

func (c *Connection) SendToAll(
	ctx context.Context, cmd *commandpb.Command,
	resC chan *commandpb.CommandResult, errC chan peerpb.PeerID,
)

Jump to

Keyboard shortcuts

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