github.com/lianghucheng/zrddz@v0.0.0-20200923083010-c71f680932e2/src/base/skeleton.go (about)

     1  package base
     2  
     3  import (
     4  	"conf"
     5  
     6  	"github.com/name5566/leaf/chanrpc"
     7  	"github.com/name5566/leaf/module"
     8  )
     9  
    10  func NewSkeleton() *module.Skeleton {
    11  	skeleton := &module.Skeleton{
    12  		GoLen:              conf.GoLen,
    13  		TimerDispatcherLen: conf.TimerDispatcherLen,
    14  		AsynCallLen:        conf.AsynCallLen,
    15  		ChanRPCServer:      chanrpc.NewServer(conf.ChanRPCLen),
    16  	}
    17  	skeleton.Init()
    18  	return skeleton
    19  }