Documentation ¶
Index ¶
- func Destroy()
- func Reload(actionMds map[Action][]Module)
- func StaticLoad(mis []Module)
- type Action
- type Module
- type Skeleton
- func (s *Skeleton) AfterFunc(d time.Duration, cb func()) *timer.Timer
- func (s *Skeleton) AsyncCall(server *chanrpc.Server, id interface{}, args ...interface{})
- func (s *Skeleton) CronFunc(cronExpr *timer.CronExpr, cb func()) *timer.Cron
- func (s *Skeleton) Go(f func(), cb func())
- func (s *Skeleton) Init()
- func (s *Skeleton) NewLinearContext() *g.LinearContext
- func (s *Skeleton) RegisterChanRPC(id interface{}, f interface{})
- func (s *Skeleton) RegisterCommand(name string, help string, f interface{})
- func (s *Skeleton) Run(closeSig chan struct{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Skeleton ¶
type Skeleton struct { GoLen int //回调缓冲区长度限制 TimerDispatcherLen int //定时器缓冲区长度限制 AsyncCallLen int //异步调用结果缓冲区长度限制 ChanRPCServer *chanrpc.Server // contains filtered or unexported fields }
func (*Skeleton) NewLinearContext ¶
func (s *Skeleton) NewLinearContext() *g.LinearContext
func (*Skeleton) RegisterChanRPC ¶
func (s *Skeleton) RegisterChanRPC(id interface{}, f interface{})
func (*Skeleton) RegisterCommand ¶
Click to show internal directories.
Click to hide internal directories.