Versions in this module Expand all Collapse all v3 v3.0.1 Dec 12, 2020 v3.0.0 Dec 7, 2020 Changes in this version + func Destroy() + func Init() + func Register(s Server) + func RegisterCreateServerFunc(serverName string, createFunc CreateServerFunc) + func Run(servers ...Server) + type CreateServerFunc func(serverId string) Server + func GetCreateServerFunc(serverName string) CreateServerFunc + type Server interface + OnStart func() + OnStop func() + Run func(closeSig chan bool) + type ServerDefault struct + Components map[string]component.Component + ServerId string + func NewServerDefault(serverId string) *ServerDefault + func (s *ServerDefault) GetComponent(name string) component.Component + func (s *ServerDefault) GetServerId() string + func (s *ServerDefault) OnDestroy() + func (s *ServerDefault) OnInit() + func (s *ServerDefault) OnRun(closeSig chan bool)