Documentation ¶
Overview ¶
a queue system to transfer transactions
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Bus busses
the instance
Functions ¶
This section is empty.
Types ¶
type BroadcastQueue ¶ added in v0.6.0
type BroadcastQueue struct {
// contains filtered or unexported fields
}
a 1:M queue out is synchronous, so messages to routines not waiting are dropped
func (*BroadcastQueue) Chan ¶ added in v0.6.0
func (queue *BroadcastQueue) Chan(size int) <-chan Message
get a new channel to read from a 1:M queue each call gets a distinct channel
func (*BroadcastQueue) Send ¶ added in v0.6.0
func (queue *BroadcastQueue) Send(command string, parameters ...[]byte)
send a message to a 1:M queue
type Message ¶
type Message struct { Command string // type of packed data Parameters [][]byte // array of parameters }
message to put into a queue
Click to show internal directories.
Click to hide internal directories.