Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallInit ¶ added in v0.21.0
func CallInit() (err error)
CallInit calls the registered initialization functions.
func Init ¶ added in v0.7.0
func Init(appName string, opts ...gconf.Opt)
Init is used to initialize the application.
- Register the log options.
- Initialize configuration.
- Initialize the logging.
- Call the registered initialization functions.
func RegisterInit ¶ added in v0.21.0
func RegisterInit(initfuncs ...func() error)
RegisterInit registers the initialization functions.
Types ¶
This section is empty.
Directories
¶
Path | Synopsis |
---|---|
Package config is used to configure the application.
|
Package config is used to configure the application. |
Package db provides some assistant functions about the database.
|
Package db provides some assistant functions about the database. |
Package exec provides some convenient execution functions.
|
Package exec provides some convenient execution functions. |
http
|
|
httpserver
Package httpserver provides some http server functions.
|
Package httpserver provides some http server functions. |
ship/router
Package router suppies some router assistant functions, such as the router Handlers and Middlewares.
|
Package router suppies some router assistant functions, such as the router Handlers and Middlewares. |
Package log is used to initialize the logging.
|
Package log is used to initialize the logging. |
Package redis provides some assistant functions about redis.
|
Package redis provides some assistant functions about redis. |
Package remote provides the command execution functions on the remote host.
|
Package remote provides the command execution functions on the remote host. |
Package validate supplies a struct validator to validate whether the field value of the struct is valid or not.
|
Package validate supplies a struct validator to validate whether the field value of the struct is valid or not. |
Click to show internal directories.
Click to hide internal directories.