Documentation
¶
Index ¶
Constants ¶
View Source
const ( AwsGatewayLambda = "aws-gateway-v1" AwsGatewayV2Lambda = "aws-gateway-v2" Https = "https" Http = "http" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListenAndServeFunc ¶ added in v0.1.9
func AWSGatewayLambdaListener ¶ added in v0.1.9
func AWSGatewayLambdaListener() ListenAndServeFunc
func AWSGatewayV2LambdaListener ¶ added in v0.1.9
func AWSGatewayV2LambdaListener() ListenAndServeFunc
func HTTPListener ¶ added in v0.1.9
func HTTPListener() ListenAndServeFunc
func TLSListener ¶ added in v0.1.9
func TLSListener(tlsProvider func() *tls.Config) ListenAndServeFunc
type Middleware ¶ added in v0.1.7
Middleware abstraction
type Server ¶
type Server interface {
Router() interface{}
WithListener(l ListenAndServeFunc) Server
Run(ctx context.Context)
}
func New ¶
func New( version *ServerVersion, middleware []Middleware, apis ...API, ) Server
Click to show internal directories.
Click to hide internal directories.