Documentation
¶
Index ¶
Constants ¶
View Source
const PluginName = "http"
Variables ¶
This section is empty.
Functions ¶
func AfterServe ¶
func AfterServe(cfg *LogReqConfig, log *slog.Logger) wool.AfterServe
func ErrorTransform ¶
Types ¶
type Config ¶
type Config struct {
UI *UIConfig `mapstructure:"ui"`
LogReq *LogReqConfig `mapstructure:"log_request"`
Middleware *MiddlewareConfig `mapstructure:"middleware"`
Swagger *SwaggerConfig `mapstructure:"swagger"`
JWT *jwt.Config `mapstructure:"jwt"`
SSE *sse.Config `mapstructure:"-"`
}
type LogReqConfig ¶
type MiddlewareConfig ¶
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func (*Plugin) Init ¶
func (p *Plugin) Init(cfg config.Configurer, rdbMaker common.RedisMaker, sub common.Sub, uow common.UnitOfWork, log logger.Logger) error
type SwaggerConfig ¶
Click to show internal directories.
Click to hide internal directories.