Documentation ¶
Overview ¶
miniplumber is a package to facilitate communication pipelines between registered readers and writers across a distributed meshage environment. miniplumber supports plumbing to external programs over stdio, similar to unix pipelines, supports trees of communication pipelines, and configurable delivery options.
Index ¶
- Constants
- type Message
- type Pipe
- type Plumber
- func (p *Plumber) Log(pipe string, mode bool)
- func (p *Plumber) Mode(pipe string, mode int)
- func (p *Plumber) NewReader(pipe string) *Reader
- func (p *Plumber) NewWriter(pipe string) chan<- string
- func (p *Plumber) PipeDelete(pipe string) error
- func (p *Plumber) PipeDeleteAll() error
- func (p *Plumber) PipelineDelete(production ...string) error
- func (p *Plumber) PipelineDeleteAll() error
- func (p *Plumber) Pipelines() []string
- func (p *Plumber) Pipes() []*Pipe
- func (p *Plumber) Plumb(production ...string) error
- func (p *Plumber) Via(pipe string, command []string)
- func (p *Plumber) Write(pipe string, value string)
- type Reader
Constants ¶
View Source
const ( TIMEOUT = time.Duration(10 * time.Second) TOKEN_MAX = 1024 * 1024 )
View Source
const ( MODE_ALL = iota MODE_RR MODE_RND )
View Source
const ( MESSAGE_FORWARD = iota MESSAGE_QUERY MESSAGE_QUERY_RESPONSE MESSAGE_VIA_WRITE MESSAGE_VIA_HOST )
View Source
const (
SCHEDULE_ALL = -1
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pipe ¶
type Pipe struct {
// contains filtered or unexported fields
}
func (*Pipe) NumMessages ¶
func (*Pipe) NumReaders ¶
func (*Pipe) NumWriters ¶
type Plumber ¶
type Plumber struct { Messages chan *meshage.Message // incoming messages from meshage // contains filtered or unexported fields }
func (*Plumber) PipeDelete ¶
func (*Plumber) PipeDeleteAll ¶
func (*Plumber) PipelineDelete ¶
func (*Plumber) PipelineDeleteAll ¶
Click to show internal directories.
Click to hide internal directories.