Documentation
¶
Index ¶
- Constants
- func GetI32(b []byte, pos int) int32
- func InitConnect(queen *Queen)
- func MqttRun(topic string, mqttClient mqtt.Client, queen *Queen)
- type CContext
- type CHandler
- type Center
- func (self *Center) All(fn func(CContext)) (id int32)
- func (self *Center) Get(key string) (nson.Value, bool)
- func (self *Center) InitCenter()
- func (self *Center) Insert(key string, value nson.Value) (nson.Value, bool)
- func (self *Center) InsertSkipAll(key string, value nson.Value) (nson.Value, bool)
- func (self *Center) Off(id int32) (ok bool)
- func (self *Center) On(key string, fn func(CContext)) (id int32)
- func (self *Center) Remove(key string) (nson.Value, bool)
- func (self *Center) Run(queen *Queen, event string)
- func (self *Center) Set(key string, value nson.Value) (nson.Value, bool)
- type Context
- type Handler
- type Queen
- type Task
- type Tasks
- type Timer
Constants ¶
View Source
const ( LINK = "sys:link" UNLINK = "sys:unlink" REMOVE = "sys:remove" HAND = "sys:hand" HANDED = "sys:handed" ATTACH = "sys:attach" DETACH = "sys:detach" SEND = "sys:send" RECV = "sys:recv" )
Variables ¶
This section is empty.
Functions ¶
func InitConnect ¶
func InitConnect(queen *Queen)
Types ¶
type Center ¶
type Center struct {
// contains filtered or unexported fields
}
func (*Center) InitCenter ¶
func (self *Center) InitCenter()
func (*Center) InsertSkipAll ¶ added in v0.1.1
Click to show internal directories.
Click to hide internal directories.