Documentation ¶
Index ¶
- Constants
- func AfterServe(cfg *AfterServeConfig) wool.AfterServe
- func ErrorTransform(err error) *wool.Error
- func FrontActivator(version string) *di.Activator
- func GetServer(ctx context.Context, c ...di.Container) (*wool.Server, error)
- func GetWool(ctx context.Context, c ...di.Container) (*wool.Wool, error)
- func ServerActivator(certFS fs.FS, tls func(*tls.Config)) *di.Activator
- func SysActivator() *di.Activator
- func WoolActivator(version string) *di.Activator
- type AfterServeConfig
- type FrontKey
- type ServerKey
- type SysKey
- type WoolKey
Constants ¶
View Source
const ( ConfigServerKey = "http" ConfigAfterServeKey = "http.after.serve" ConfigCORSKey = "http.middleware.cors" ConfigMetricsKey = "http.middleware.metrics" ConfigCompressKey = "http.middleware.compress" )
Variables ¶
This section is empty.
Functions ¶
func AfterServe ¶
func AfterServe(cfg *AfterServeConfig) wool.AfterServe
func ErrorTransform ¶
func FrontActivator ¶
func SysActivator ¶
func WoolActivator ¶
Types ¶
type AfterServeConfig ¶
type AfterServeConfig struct { ExcludeRegexStatus string `mapstructure:"exclude_status"` ExcludeRegexMethod string `mapstructure:"exclude_method"` ExcludeRegexEndpoint string `mapstructure:"exclude_endpoint"` // contains filtered or unexported fields }
func (*AfterServeConfig) Init ¶
func (cfg *AfterServeConfig) Init()
Click to show internal directories.
Click to hide internal directories.