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
}
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
Directories
¶
| Path | Synopsis |
|---|---|
|
_examples
|
|
|
chat
command
|
|
|
test1_data_config
command
|
|
|
test1_handler
command
|
|
|
test_func_call
command
|
|
|
test_gin
command
|
|
|
test_linq
command
|
|
|
test_logger
command
|
|
|
test_timer
command
|
|
|
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
|
|
|
extend
|
|
|
mapstructure
file from https://github.com/goinggo/mapstructure code from https://github.com/goinggo/mapstructure The mapstructure package exposes functionality to convert an abitrary map[string]interface{} into a native Go structure.
|
file from https://github.com/goinggo/mapstructure code from https://github.com/goinggo/mapstructure The mapstructure package exposes functionality to convert an abitrary map[string]interface{} into a native Go structure. |
|
slice
code from: https://github.com/beego/beego/blob/develop/core/utils/slice.go
|
code from: https://github.com/beego/beego/blob/develop/core/utils/slice.go |
|
snowflake
code from: https://github.com/bwmarrin/snowflake Package snowflake provides a very simple Twitter snowflake generator and parser.
|
code from: https://github.com/bwmarrin/snowflake Package snowflake provides a very simple Twitter snowflake generator and parser. |
|
time
code from: https://github.com/golang-module/carbon
|
code from: https://github.com/golang-module/carbon |
|
net
|
|
Click to show internal directories.
Click to hide internal directories.