Documentation
¶
Index ¶
- func GetComponent[T core.IComponent](c *core.Context) T
- func GetModel[T core.IModel](c *core.Context) T
- func GetReNewModel[T core.IModel](db *gorm.DB, c *core.Context) T
- func GetRunner[T core.IRunner](c *core.Context) T
- func GetService[T core.IService](c *core.Context) T
- func LoadAutoConfig() *config2.Config
- func LoadConfig(paths ...string) (*config2.Config, error)
- func RunDaemon(appService AppService, svcConfig *service.Config)
- func UnmarshalConfig[T any](key string, c *core.Context) T
- type AppDaemon
- type AppService
- type WebFrame
- func (w *WebFrame) AddComponent(component ...core.IComponent)
- func (w *WebFrame) AddMiddleware(middlewareFunc ...core.MiddlewareFunc)
- func (w *WebFrame) AddModel(model ...core.IModel)
- func (w *WebFrame) AddRest(rest ...core.IRest)
- func (w *WebFrame) AddRunner(runner ...core.IRunner)
- func (w *WebFrame) AddService(service ...core.IService)
- func (w *WebFrame) Authentication(authentication web.Authentication)
- func (w *WebFrame) Close() error
- func (w *WebFrame) Daemon(svcConfig *service.Config)
- func (w *WebFrame) GetRestGroup(serverConfig *web.ServerConfig) *core.RestGroup
- func (w *WebFrame) Start() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetComponent ¶
func GetComponent[T core.IComponent](c *core.Context) T
func LoadAutoConfig ¶
func RunDaemon ¶
func RunDaemon(appService AppService, svcConfig *service.Config)
Types ¶
type AppService ¶
type WebFrame ¶
type WebFrame struct {
// contains filtered or unexported fields
}
func (*WebFrame) AddComponent ¶
func (w *WebFrame) AddComponent(component ...core.IComponent)
func (*WebFrame) AddMiddleware ¶
func (w *WebFrame) AddMiddleware(middlewareFunc ...core.MiddlewareFunc)
func (*WebFrame) AddService ¶
func (*WebFrame) Authentication ¶
func (w *WebFrame) Authentication(authentication web.Authentication)
func (*WebFrame) GetRestGroup ¶
func (w *WebFrame) GetRestGroup(serverConfig *web.ServerConfig) *core.RestGroup
Click to show internal directories.
Click to hide internal directories.