Documentation ¶
Index ¶
- func NewLogger(handler func(level LogLevel, log string, args ...interface{})) domain.Logger
- type LogLevel
- type Plugin
- func NewLogPlugin(name string, logHandler app.HandleLog, hooks PluginHooks) *Plugin
- func NewLoggerPlugin(name string, appendLogger app.AppendLogger, hooks PluginHooks) *Plugin
- func NewPlugin(name string, handlers PluginHandlers, hooks PluginHooks) *Plugin
- func NewRouterPlugin(name string, routerHandler app.SetupRouter, hooks PluginHooks) *Plugin
- func (p Plugin) AppendLogger(context *app.Context) domain.Logger
- func (p Plugin) HandleLog(log domain.Log)
- func (p Plugin) Name() string
- func (p Plugin) OnAfterClose(context *app.Context)
- func (p Plugin) OnAfterServe(context *app.Context)
- func (p Plugin) OnDeInit(context *app.Context)
- func (p Plugin) OnInit(context *app.Context)
- func (p Plugin) SetupRouter(router fiber.Router, context *app.Context)
- type PluginHandlers
- type PluginHooks
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Plugin ¶
type Plugin struct { LogHandler app.HandleLog RouterHandler app.SetupRouter LoggerHandler app.AppendLogger Hooks PluginHooks // contains filtered or unexported fields }
func NewLogPlugin ¶
func NewLogPlugin( name string, logHandler app.HandleLog, hooks PluginHooks, ) *Plugin
func NewLoggerPlugin ¶
func NewLoggerPlugin( name string, appendLogger app.AppendLogger, hooks PluginHooks, ) *Plugin
func NewPlugin ¶
func NewPlugin( name string, handlers PluginHandlers, hooks PluginHooks, ) *Plugin
func NewRouterPlugin ¶
func NewRouterPlugin( name string, routerHandler app.SetupRouter, hooks PluginHooks, ) *Plugin
func (Plugin) OnAfterClose ¶ added in v0.2.1
func (Plugin) OnAfterServe ¶ added in v0.2.1
func (Plugin) SetupRouter ¶
type PluginHandlers ¶ added in v0.2.1
type PluginHandlers struct { LogHandler app.HandleLog RouterHandler app.SetupRouter LoggerHandler app.AppendLogger }
Click to show internal directories.
Click to hide internal directories.