Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct {
// contains filtered or unexported fields
}
Application is your service
func NewApplication ¶
func NewApplication() *Application
func (*Application) SetContext ¶
func (self *Application) SetContext(c ApplicationContext)
Setup application context
func (*Application) SetOnStart ¶
func (self *Application) SetOnStart(c func(*ApplicationContext))
Setup application start event
func (*Application) SetOnStop ¶
func (self *Application) SetOnStop(c func(*ApplicationContext))
Setup application stop event
type ApplicationContext ¶
type ApplicationContext interface{}
Click to show internal directories.
Click to hide internal directories.