link

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MsgSendTimeout = 100 * time.Millisecond
)

Variables

This section is empty.

Functions

func New added in v0.0.2

func New(name string, params core.Params) (core.Link, error)

Types

type BufStrategy

type BufStrategy uint8
const (
	BufStrategyBlock BufStrategy = iota
	BufStrategySub
	BufStrategyDrop
)

type Buffer

type Buffer struct {
	Name string
	// contains filtered or unexported fields
}

func (*Buffer) ConnectTo

func (buf *Buffer) ConnectTo(link core.Link) error

func (*Buffer) ExecCmd

func (buf *Buffer) ExecCmd(cmd *core.Cmd) error

func (*Buffer) LinkTo

func (buf *Buffer) LinkTo([]core.Link) error

func (*Buffer) Recv

func (buf *Buffer) Recv(msg *core.Message) error

func (*Buffer) RouteTo

func (buf *Buffer) RouteTo(map[string]core.Link) error

func (*Buffer) Send

func (buf *Buffer) Send(msg *core.Message) error

func (*Buffer) String added in v0.0.2

func (buf *Buffer) String() string

Jump to

Keyboard shortcuts

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