piper

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pipe

type Pipe struct {
	Iface     *water.Interface
	File      *os.File
	Transport transport.Transport
	FailFlag  bool
	Mutex     *sync.Mutex
	Routes    []string
}

func NewPipe

func NewPipe(iface *water.Interface, transport transport.Transport, routes []string) (*Pipe, error)

func (*Pipe) AtomicExecute

func (v *Pipe) AtomicExecute(target func())

func (*Pipe) Close

func (v *Pipe) Close() error

func (*Pipe) ExecuteControlCommand

func (v *Pipe) ExecuteControlCommand(cmd message.Command) (message.Command, error)

func (*Pipe) Fail

func (v *Pipe) Fail()

func (*Pipe) Failed

func (v *Pipe) Failed() bool

func (*Pipe) ProcessControlCommand

func (v *Pipe) ProcessControlCommand(expectedType message.CMD_TYPE, handler func(cmd message.Command) message.Command) error

func (*Pipe) Run

func (v *Pipe) Run(ctx context.Context, is_server bool) error

Jump to

Keyboard shortcuts

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