internal

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

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

Go to latest
Published: Jun 22, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Writer

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

func NewWriter

func NewWriter(h host.Host) *Writer

func (*Writer) AddStream

func (w *Writer) AddStream(id state.Peer, stream network.Stream)

func (*Writer) RemoveStream

func (w *Writer) RemoveStream(id state.Peer)

func (*Writer) Send

func (w *Writer) Send(ctx context.Context, target state.Peer, msg *pb.Message) error

func (*Writer) SetProtocol

func (w *Writer) SetProtocol(proto protocol.ID)

Jump to

Keyboard shortcuts

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