Documentation
¶
Index ¶
- func Run(app Service)
- type BaseService
- func (app *BaseService) AddComponent(com component.Component) component.Component
- func (app *BaseService) ID() string
- func (app *BaseService) Init() error
- func (app *BaseService) Name() string
- func (app *BaseService) SetID(id string)
- func (app *BaseService) SetName(name string)
- func (app *BaseService) Shutdown()
- func (app *BaseService) Start()
- func (app *BaseService) Update(now time.Time, dt time.Duration)
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BaseService ¶
type BaseService struct {
// contains filtered or unexported fields
}
BaseService implements Service
func NewBaseService ¶
func NewBaseService(cfg config.Configurator) *BaseService
NewBaseService creates a BaseApplication
func (*BaseService) AddComponent ¶
func (app *BaseService) AddComponent(com component.Component) component.Component
func (*BaseService) ID ¶
func (app *BaseService) ID() string
ID implements Application.Service ID method
func (*BaseService) Init ¶
func (app *BaseService) Init() error
Init implements Application.Service Init method
func (*BaseService) Name ¶
func (app *BaseService) Name() string
Name implements Application.Service Name method
func (*BaseService) SetName ¶
func (app *BaseService) SetName(name string)
SetName sets name of application
func (*BaseService) Shutdown ¶
func (app *BaseService) Shutdown()
Shutdown implements Application.Service Shutdown method
func (*BaseService) Start ¶
func (app *BaseService) Start()
Start implements Application.Service Start method
Click to show internal directories.
Click to hide internal directories.