Documentation ¶
Index ¶
- Constants
- Variables
- func Setup(s IService) bool
- func Start(name ...string)
- func WaitStop()
- type Caller
- type Context
- type IService
- type LPC
- type MessagePool
- type RPC
- type Reset
- type Service
- func (s *Service) Dispatch()
- func (s *Service) EXIT(svc IService)
- func (s *Service) GetName() string
- func (s *Service) Init(svc IService)
- func (s *Service) OnEXIT()
- func (s *Service) OnInit()
- func (s *Service) OnRelease()
- func (s *Service) OnStart()
- func (s *Service) Put(req *request)
- func (s *Service) Release(svc IService)
- func (s *Service) SetName(serviceName string)
- func (s *Service) SetProcessNum(max int)
- func (s *Service) Start(svc IService)
- func (s *Service) Status() int
- func (s *Service) Wait()
Constants ¶
View Source
const ( Stop = 0 Running = 1 Starting = 2 Stopping = 3 )
Variables ¶
View Source
var ( NonexistentService = func(intr string) error { return errors.New(fmt.Sprintf("no service as '%s'", intr)) } )
View Source
var UsePool bool
Functions ¶
Types ¶
type Caller ¶
type Caller interface { Call(ctx Context, fname string, args, reply interface{}) error Delay(ctx Context, fname string, args, reply interface{}) *request }
func GetService ¶
type MessagePool ¶
type MessagePool interface {
Put(*request)
}
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) SetProcessNum ¶
Click to show internal directories.
Click to hide internal directories.