Documentation ¶
Index ¶
- func GetInstance(index string) interface{}
- func Inject(instance interface{})
- func Load()
- func RequestDataHandlerFunc(ctx *gin.Context)
- func StartHTTP()
- type ApplicationContainer
- type ApplicationContainer_HttpServerConf
- type ApplicationContainer_Route
- type RouteConf
- type RouteConf_Middleware
- type RouteConf_Middlewares
- type ServerConf
- type ServerConf_HttpServer
- type ServerContainer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetInstance ¶
func GetInstance(index string) interface{}
func RequestDataHandlerFunc ¶ added in v0.0.9
Types ¶
type ApplicationContainer ¶
type ApplicationContainer struct { ExitChannel chan os.Signal HttpServer *http.Server HttpServerConf *ApplicationContainer_HttpServerConf Routes []*ApplicationContainer_Route }
func (ApplicationContainer) ListenExitChannel ¶
func (app ApplicationContainer) ListenExitChannel()
type ApplicationContainer_Route ¶
type ApplicationContainer_Route struct { Path string Method string Handler gin.HandlerFunc PrefixMiddlewares []gin.HandlerFunc SurfixMiddlewares []gin.HandlerFunc }
type RouteConf ¶
type RouteConf struct { Path string `json:"path"` Method string `json:"method"` App string `json:"app"` Controller string `json:"controller"` Function string `json:"function"` Middlewares *RouteConf_Middlewares `json:"middlewares"` Routes []*RouteConf `json:"routes"` }
func (*RouteConf) ConfigName ¶
type RouteConf_Middleware ¶
type RouteConf_Middlewares ¶ added in v0.0.7
type RouteConf_Middlewares struct { Prefix []*RouteConf_Middleware `json:"prefix"` Surfix []*RouteConf_Middleware `json:"surfix"` }
type ServerConf ¶
type ServerConf struct { GoMod string `json:"go_mod"` HttpServer *ServerConf_HttpServer `json:"http_server"` }
func (*ServerConf) ConfigName ¶
func (i *ServerConf) ConfigName() string
type ServerConf_HttpServer ¶
type ServerContainer ¶
func (*ServerContainer) Clear ¶
func (i *ServerContainer) Clear()
func (*ServerContainer) Get ¶
func (i *ServerContainer) Get(index string) interface{}
func (*ServerContainer) Remove ¶
func (i *ServerContainer) Remove(instance interface{})
func (*ServerContainer) Save ¶
func (i *ServerContainer) Save(instance interface{})
Click to show internal directories.
Click to hide internal directories.