Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithLogginOption ¶ added in v0.1.2
func WithLogginOption(option LoggingOption)
Types ¶
type Config ¶ added in v0.0.7
type Config struct { Port int `yaml:"port" env:"HTTP_PORT" default:"8000"` AccessLog bool `yaml:"access_log" env:"HTTP_ACCESS_LOG" default:"false"` ErrorLogChannel string `yaml:"error_log_channel" default:"default"` AccessLogChannel string `yaml:"access_log_channel"` TrustedProxies []string `yaml:"trusted_proxies"` TrustedProxyHeaders []string `yaml:"trusted_proxy_headers"` EnableCors bool `yaml:"enable_cors" env:"HTTP_ENABLE_CORS" default:"false"` }
type HttpBoundle ¶ added in v0.0.7
type HttpBoundle interface { //Lifetime container callback // usually register request lifetime instance to IoC-Container (per-request unique) // this function will run before every request handling Lifetime(ioc container.Interface, request contracts.RequestContract) }
type LoggingOption ¶ added in v0.1.2
type RoutesRegister ¶ added in v0.0.7
type Server ¶ added in v0.0.7
type Server struct {
// contains filtered or unexported fields
}
func (*Server) GetFastHttpServer ¶ added in v0.0.7
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶ added in v0.0.7
func NewService() *Service
Click to show internal directories.
Click to hide internal directories.