Documentation ¶
Index ¶
- Constants
- type NetPipe
- func New(pType PipeType, inputPort int, outputPort int, handler PipeHandler, ...) (NetPipe, error)
- func NewInputOutputPipe(inputPort int, outputPort int, handler PipeHandler, logger log.Logger) (NetPipe, error)
- func NewInputOutputPipeWith(listenIp string, inputPort int, answerIp string, outputPort int, ...) (NetPipe, error)
- func NewInputPipe(inputPort int, handler PipeHandler, logger log.Logger) (NetPipe, error)
- func NewInputPipeWith(listenIp string, inputPort int, handler PipeHandler, logger log.Logger) (NetPipe, error)
- func NewNetPipe(pType PipeType, listenAddress string, inputPort int, answerAddress string, ...) (NetPipe, error)
- func NewOutputPipe(outputPort int, handler PipeHandler, logger log.Logger) (NetPipe, error)
- func NewOutputPipeWith(answerIp string, outputPort int, handler PipeHandler, logger log.Logger) (NetPipe, error)
- type PipeHandler
- type PipeType
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NetPipe ¶
type NetPipe interface { Start() error Stop() IsRunning() bool GetInputChannel() (<-chan []byte, error) GetOutputChannel() (chan []byte, error) Write(d []byte) (int, error) }
func NewInputOutputPipe ¶
func NewInputOutputPipeWith ¶
func NewInputPipe ¶
func NewInputPipeWith ¶
func NewNetPipe ¶
func NewOutputPipe ¶
func NewOutputPipeWith ¶
type PipeHandler ¶
type PipeHandler func(message string)
Click to show internal directories.
Click to hide internal directories.