Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AppRouter = router.App
AppRouter is the default app router.
Functions ¶
func Init ¶ added in v0.7.0
func Init(appName string, configOptions ...interface{})
Init is equal to InitApp(appName, gover.Text(), configOptions...).
func InitApp ¶
func InitApp(appName, version string, options ...interface{})
InitApp initializes the application, which is equal to
InitApp2(appName, version, "100M", 100, options...)
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package config is used to initialize the configuration.
|
Package config is used to initialize the configuration. |
Package db supplies some assistant functions about the database.
|
Package db supplies some assistant functions about the database. |
Package log is used to initialize the logger, and supplies some assistant functions about log.
|
Package log is used to initialize the logger, and supplies some assistant functions about log. |
Package net supplies some assistant functions about net, such as the gateway ip and routes.
|
Package net supplies some assistant functions about net, such as the gateway ip and routes. |
Package opentracing is used to initialize the opentracing from the plugin, and supplies the OpenTracing http.RoundTripper and router middleware.
|
Package opentracing is used to initialize the opentracing from the plugin, and supplies the OpenTracing http.RoundTripper and router middleware. |
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 scanner is the replacer of the stdlib `bufio.Scanner`, which adds the read offset.
|
Package scanner is the replacer of the stdlib `bufio.Scanner`, which adds the read offset. |
Package slice supplies some assistant functions about slice.
|
Package slice supplies some assistant functions about slice. |
Click to show internal directories.
Click to hide internal directories.