Documentation ¶
Index ¶
Constants ¶
View Source
const PriorityMax = 5
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶
func GetService ¶
type ServiceFactory ¶
type ServiceManager ¶
type ServiceManager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager() *ServiceManager
func (*ServiceManager) Add ¶
func (s *ServiceManager) Add(priority int, factory ServiceFactory)
func (*ServiceManager) GetService ¶
func (p *ServiceManager) GetService(name string) Service
GetService return service instance by name, or matched by part of name
func (*ServiceManager) Run ¶
func (s *ServiceManager) Run(server string) error
func (*ServiceManager) Shutdown ¶
func (s *ServiceManager) Shutdown(code int, reason string)
Shutdown
Click to show internal directories.
Click to hide internal directories.