controlmsg

package
v0.0.0-...-06a57e6 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2017 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ControlMsgUnknown = iota
	ControlMsgPause
	ControlMsgResume
	ControlMsgExit
	ControlMsgTick
	ControlMsgDegrade
	ControlMsgMax
)
View Source
const (
	ProcessStatOK = iota
	ProcessStatIgnore
	ProcessStatPanic
	ProcessPipeFull
	ProcessPipeReceiverLost
	ProcessStatUnknown
)
View Source
const (
	NextActionBreak = iota
	NextActionContinue
	NextActionReturn
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ControlMsg

type ControlMsg struct {
	MsgType int
	Payload interface{}
}

type ControlMsgPipe

type ControlMsgPipe struct {
	Cmd  chan *ControlMsg
	Echo chan *ControlMsg
}

func NewControlMsgPipe

func NewControlMsgPipe() *ControlMsgPipe

func (*ControlMsgPipe) CloseControlMsgPipe

func (p *ControlMsgPipe) CloseControlMsgPipe()

func (*ControlMsgPipe) ReadCmdNoBlock

func (p *ControlMsgPipe) ReadCmdNoBlock() (*ControlMsg, bool)

func (*ControlMsgPipe) ReadEchoNoBlock

func (p *ControlMsgPipe) ReadEchoNoBlock() (*ControlMsg, bool)

func (*ControlMsgPipe) SysControlEntry

func (t *ControlMsgPipe) SysControlEntry(serviceName string, msg *ControlMsg) (int, int)

func (*ControlMsgPipe) WriteCmdNoBlock

func (p *ControlMsgPipe) WriteCmdNoBlock(msg *ControlMsg) bool

func (*ControlMsgPipe) WriteEchoNoBlock

func (p *ControlMsgPipe) WriteEchoNoBlock(msg *ControlMsg) bool

Jump to

Keyboard shortcuts

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