Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dispatcher ¶
type Dispatcher interface {
Schedule(fn func())
Throughput() int
}
func NewDispatcher ¶
func NewDispatcher(throughput int) Dispatcher
type Invoker ¶
type Invoker interface {
//优先调用的命令消息
ReceiveCmdMessage(message interface{})
//普通传递的消息
ReceiveUserMessage(message interface{})
}
Source Files
¶
- dispatcher.go
- invoker.go
- mailbox.go
- queue.go
Click to show internal directories.
Click to hide internal directories.