Documentation
¶
Index ¶
- func Destroy()
- func Init()
- func Register(mi Module)
- 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(expr *timer.CronExpr, cb func()) *timer.Cron
- func (s *Skeleton) Go(f, cb func())
- func (s *Skeleton) Init()
- func (s *Skeleton) NewLinearContext() *g.LinearContext
- func (s *Skeleton) RegisterChanRPC(id, f interface{})
- func (s *Skeleton) RegisterCommand(name, help string, f interface{})
- func (s *Skeleton) Run(closeSig chan struct{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Module ¶
type Module interface {
OnInit()
OnDestroy()
Run(closeSig chan struct{})
}
Module 模块接口
type Skeleton ¶
type Skeleton struct {
// go
GoLen int
// timer dispatcher
TimerDispatcherLen int
// channel rpc client
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, f interface{})
func (*Skeleton) RegisterCommand ¶
Click to show internal directories.
Click to hide internal directories.