Documentation
¶
Index ¶
Constants ¶
View Source
const ( TargetBroadcast = "*" TargetSelfInit = "self-init" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Broker ¶
type Broker struct {
// contains filtered or unexported fields
}
func (*Broker) DefaultBus ¶
type Message ¶
type Message struct {
Target uwe.WorkerName
Sender uwe.WorkerName
Kind MessageKind
Data interface{}
}
type MessageKind ¶
type MessageKind int
type SenderBus ¶
type SenderBus interface {
Send(target uwe.WorkerName, data interface{})
SendWithKind(target uwe.WorkerName, kind MessageKind, data interface{})
SendToMany(kind MessageKind, data interface{}, targets ...uwe.WorkerName)
SelfInit(name uwe.WorkerName) EventBus
}
Click to show internal directories.
Click to hide internal directories.