Documentation ¶
Index ¶
- type Application
- func (a *Application) All() []cherryInterfaces.IComponent
- func (a *Application) Find(name string) cherryInterfaces.IComponent
- func (a *Application) NodeId() string
- func (a *Application) NodeType() string
- func (a *Application) Remove(name string) cherryInterfaces.IComponent
- func (a *Application) Running() bool
- func (a *Application) Shutdown(beforeStopHook ...func())
- func (a *Application) Startup(components ...cherryInterfaces.IComponent)
- func (a *Application) ThisNode() cherryInterfaces.INode
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
func DefaultApp ¶
func DefaultApp() *Application
func NewApp ¶
func NewApp(configPath, profile, nodeId string) *Application
NewApp create new application instance
func (*Application) All ¶
func (a *Application) All() []cherryInterfaces.IComponent
func (*Application) Find ¶
func (a *Application) Find(name string) cherryInterfaces.IComponent
func (*Application) NodeId ¶
func (a *Application) NodeId() string
func (*Application) NodeType ¶
func (a *Application) NodeType() string
func (*Application) Remove ¶
func (a *Application) Remove(name string) cherryInterfaces.IComponent
Remove remove component by name
func (*Application) Running ¶
func (a *Application) Running() bool
func (*Application) Shutdown ¶
func (a *Application) Shutdown(beforeStopHook ...func())
func (*Application) Startup ¶
func (a *Application) Startup(components ...cherryInterfaces.IComponent)
Startup
func (*Application) ThisNode ¶
func (a *Application) ThisNode() cherryInterfaces.INode
Directories ¶
Path | Synopsis |
---|---|
component
|
|
gin
from https://github.com/gin-contrib/zap/
|
from https://github.com/gin-contrib/zap/ |
components
|
|
cron
Module
|
|
data-config
Module
|
|
etcd
Module
|
|
gin
Module
|
|
gops
Module
|
|
gorm
Module
|
|
mongo
Module
|
|
examples
module
|
|
snowflake
Package snowflake provides a very simple Twitter snowflake generator and parser.
|
Package snowflake provides a very simple Twitter snowflake generator and parser. |
utils
file from https://github.com/beego/beego/blob/develop/core/utils/slice.go
|
file from https://github.com/beego/beego/blob/develop/core/utils/slice.go |
net
|
|
Click to show internal directories.
Click to hide internal directories.