server

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2023 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

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 AppendH2ToNextProtos(ps []string) []string

func AuthorizationMiddleware

func AuthorizationMiddleware() sauce.AuthorizationMiddleware

func ControlServer

func ControlServer() sauce.Component

func GrpcServerFactory

func GrpcServerFactory(beanName string) gluten.FactoryBean

func GrpcServerScanner

func GrpcServerScanner(beanName string, scan ...interface{}) sauce.ServerScanner

func GzipHandler

func GzipHandler(handler http.Handler) http.Handler

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 NewGrpcServer

func NewGrpcServer(beanName string, srv *grpc.Server) sauce.Server

func NewHttpServer

func NewHttpServer(srv *http.Server) sauce.Server

func RedirectHttpsPage

func RedirectHttpsPage(beanName string) sauce.Page

func Rewrite

func Rewrite(from, to string, handler http.Handler) http.Handler

func ServerScanner

func ServerScanner(scan ...interface{}) sauce.ServerScanner

func TemplatePage

func TemplatePage(pattern, templateFile string) sauce.Page

func TlsConfigFactory

func TlsConfigFactory(beanName string) gluten.FactoryBean

Types

type EmptyAddr

type EmptyAddr struct {
}

func (EmptyAddr) Network

func (t EmptyAddr) Network() string

func (EmptyAddr) String

func (t EmptyAddr) String() string

Jump to

Keyboard shortcuts

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