Documentation ¶
Index ¶
Constants ¶
View Source
const RemoteComponentName = "zug_ins_nirgendwo_2019"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ACK ¶
type ACK struct { Command *Command `json:"command"` Success bool `json:"success"` Value string `json:"value"` }
ACK is used as simple ACK for received commands
type Command ¶
type Command struct { CommandID int `json:"id"` Command string `json:"cmd"` Arguments []interface{} `json:"arg"` }
Command realizes a simple RPC interface
type QueueWorker ¶
QueueWorker pulls commands from a channel, sends them via tcp and pushes results back to the results channel
func NewQueueWorker ¶
func NewQueueWorker(tcpAddress string) *QueueWorker
NewQueueWorker creates a new instance
Click to show internal directories.
Click to hide internal directories.