Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComposePluginMessage ¶
ComposePluginMessage creates message of pub/sub
func CreateStopMessage ¶
CreateStopMessage creates message to stop subscriber
func ParseStopMessage ¶
ParseStopMessage parses message of stop from publisher
Types ¶
type Message ¶
type Message struct { Type string `json:"type"` Command string `json:"command"` Name string `json:"name"` BinName string `json:"binName"` Args map[string]string `json:"args"` }
Message format of pub/sub TODO: 構造体を外部に隠蔽する方法を調べる
type Publisher ¶
type Publisher struct{}
Publisher for plugin
type Subscriber ¶
type Subscriber struct {
PluginDir string
}
Subscriber for plugin
func (*Subscriber) GetChannelCapacity ¶
func (s *Subscriber) GetChannelCapacity() int
GetChannelCapacity capacity of channel in subscriber
func (*Subscriber) GetChannelLength ¶
func (s *Subscriber) GetChannelLength() int
GetChannelLength length of channel in subscriber
Click to show internal directories.
Click to hide internal directories.