Documentation ¶
Index ¶
- type Application
- func (a *Application) All() []facade.IComponent
- func (a *Application) Find(name string) facade.IComponent
- func (a *Application) OnShutdown(fn ...func())
- func (a *Application) Remove(name string) facade.IComponent
- func (a *Application) Running() bool
- func (a *Application) SetPacketCodec(codec facade.IPacketCodec)
- func (a *Application) SetSerializer(serializer facade.ISerializer)
- func (a *Application) Shutdown()
- func (a *Application) StartTime() string
- func (a *Application) Startup(components ...facade.IComponent)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct { facade.INode facade.ISerializer facade.IPacketCodec // contains filtered or unexported fields }
func App ¶ added in v1.1.3
func App() *Application
func NewApp ¶
func NewApp(profilePath, profileName, nodeId string) *Application
NewApp create new application instance
func NewDefaultApp ¶ added in v1.1.0
func NewDefaultApp() *Application
func (*Application) All ¶
func (a *Application) All() []facade.IComponent
func (*Application) Find ¶
func (a *Application) Find(name string) facade.IComponent
func (*Application) OnShutdown ¶ added in v1.1.0
func (a *Application) OnShutdown(fn ...func())
func (*Application) Remove ¶
func (a *Application) Remove(name string) facade.IComponent
Remove remove component by name
func (*Application) Running ¶
func (a *Application) Running() bool
func (*Application) SetPacketCodec ¶ added in v1.1.0
func (a *Application) SetPacketCodec(codec facade.IPacketCodec)
func (*Application) SetSerializer ¶ added in v1.1.0
func (a *Application) SetSerializer(serializer facade.ISerializer)
func (*Application) Shutdown ¶
func (a *Application) Shutdown()
func (*Application) StartTime ¶ added in v1.1.0
func (a *Application) StartTime() string
func (*Application) Startup ¶
func (a *Application) Startup(components ...facade.IComponent)
Startup load components before startup
Directories ¶
Path | Synopsis |
---|---|
_examples
|
|
component
|
|
gin
Package cherryGin from https://github.com/gin-contrib/zap/
|
Package cherryGin 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
|
|
extend
|
|
map
Package cherryMap file from https://github.com/beego/beego/blob/develop/core/utils/safemap.go Package cherryMap file from https://github.com/gogf/gf
|
Package cherryMap file from https://github.com/beego/beego/blob/develop/core/utils/safemap.go Package cherryMap file from https://github.com/gogf/gf |
mapstructure
Package cherryMapStructure file from https://github.com/goinggo/mapstructure Package cherryMapStructure code from https://github.com/goinggo/mapstructure The mapstructure package exposes functionality to convert an abitrary map[string]interface{} into a native Go structure.
|
Package cherryMapStructure file from https://github.com/goinggo/mapstructure Package cherryMapStructure code from https://github.com/goinggo/mapstructure The mapstructure package exposes functionality to convert an abitrary map[string]interface{} into a native Go structure. |
regex
Package cherryRegex file from https://github.com/gogf/gf
|
Package cherryRegex file from https://github.com/gogf/gf |
slice
Package cherySlice code from: https://github.com/beego/beego/blob/develop/core/utils/slice.go
|
Package cherySlice code from: https://github.com/beego/beego/blob/develop/core/utils/slice.go |
snowflake
Package cherrySnowflake code from: https://github.com/bwmarrin/snowflake snowflake provides a very simple Twitter snowflake generator and parser.
|
Package cherrySnowflake code from: https://github.com/bwmarrin/snowflake snowflake provides a very simple Twitter snowflake generator and parser. |
time
Package cherryTime code from: https://github.com/golang-module/carbon
|
Package cherryTime code from: https://github.com/golang-module/carbon |
utils
Package cherryUtils file from https://github.com/gogf/gf Package cherryUtils file from https://github.com/gogf/gf Package cherryUtils file from https://github.com/gogf/gf
|
Package cherryUtils file from https://github.com/gogf/gf Package cherryUtils file from https://github.com/gogf/gf Package cherryUtils file from https://github.com/gogf/gf |
net
|
|
Click to show internal directories.
Click to hide internal directories.