http

package
v2.0.0-alpha7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2023 License: MIT Imports: 28 Imported by: 0

Documentation

Index

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 ErrorTransform(err error) *wool.Error

func FrontActivator

func FrontActivator(version string) *di.Activator

func GetServer

func GetServer(ctx context.Context, c ...di.Container) (*wool.Server, error)

func GetWool

func GetWool(ctx context.Context, c ...di.Container) (*wool.Wool, error)

func ServerActivator

func ServerActivator(certFS fs.FS, tls func(*tls.Config)) *di.Activator

func SysActivator

func SysActivator() *di.Activator

func WoolActivator

func WoolActivator(version string) *di.Activator

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()

type FrontKey

type FrontKey struct{}

type ServerKey

type ServerKey struct{}

type SysKey

type SysKey struct{}

type WoolKey

type WoolKey struct{}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL