Documentation ¶
Index ¶
- Variables
- func AppendH2ToNextProtos(ps []string) []string
- func AuthorizationMiddleware() sauce.AuthorizationMiddleware
- func ControlServer() sauce.Component
- func GrpcServerFactory(beanName string) gluten.FactoryBean
- func GrpcServerScanner(beanName string, scan ...interface{}) sauce.ServerScanner
- func GzipHandler(handler http.Handler) http.Handler
- func HealthcheckerFactory(enableServices bool) gluten.FactoryBean
- func HttpServerFactory(beanName string) gluten.FactoryBean
- func HttpServerScanner(beanName string, scan ...interface{}) sauce.ServerScanner
- func NewGrpcServer(beanName string, srv *grpc.Server) sauce.Server
- func NewHttpServer(srv *http.Server) sauce.Server
- func RedirectHttpsPage(beanName string) sauce.Page
- func Rewrite(from, to string, handler http.Handler) http.Handler
- func ServerScanner(scan ...interface{}) sauce.ServerScanner
- func TemplatePage(pattern, templateFile string) sauce.Page
- func TlsConfigFactory(beanName string) gluten.FactoryBean
- type EmptyAddr
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ShutdownDelay = time.Second ErrAuthWrongRole = errors.New("wrong role") ErrAuthAdminRequired = errors.New("admin role required") ErrAuthUserNotFound = errors.New("user not found") )
View Source
var ( ErrInterrupted = errors.New("interrupted") ErrTimeout = errors.New("timeout") )
Functions ¶
func AppendH2ToNextProtos ¶
func AuthorizationMiddleware ¶
func AuthorizationMiddleware() sauce.AuthorizationMiddleware
func ControlServer ¶
func GrpcServerFactory ¶
func GrpcServerFactory(beanName string) gluten.FactoryBean
func GrpcServerScanner ¶
func GrpcServerScanner(beanName string, scan ...interface{}) sauce.ServerScanner
func HealthcheckerFactory ¶
func HealthcheckerFactory(enableServices bool) gluten.FactoryBean
func HttpServerFactory ¶
func HttpServerFactory(beanName string) gluten.FactoryBean
func HttpServerScanner ¶
func HttpServerScanner(beanName string, scan ...interface{}) sauce.ServerScanner
func RedirectHttpsPage ¶
func ServerScanner ¶
func ServerScanner(scan ...interface{}) sauce.ServerScanner
func TemplatePage ¶
func TlsConfigFactory ¶
func TlsConfigFactory(beanName string) gluten.FactoryBean
Types ¶
Click to show internal directories.
Click to hide internal directories.