http3

package
v4.4.10 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const ACMETLS1Protocol string = "acme-tls/1"

Variables

This section is empty.

Functions

func NewHTTP3server

func NewHTTP3server(handler http.Handler, acmeCfg *acme.Config, cfg *Config, log *zap.Logger) (servers.InternalServer[any], error)

Types

type Config

type Config struct {
	// Address is the address to listen on.
	Address string `mapstructure:"address"`
	// Key defined private server key.
	Key string `mapstructure:"key"`
	// Cert is https certificate.
	Cert string `mapstructure:"cert"`
}

type Server

type Server struct {
	// contains filtered or unexported fields
}

func (*Server) Serve

func (s *Server) Serve(mdwr map[string]common.Middleware, order []string) error

func (*Server) Server

func (s *Server) Server() any

func (*Server) Stop

func (s *Server) Stop()

Jump to

Keyboard shortcuts

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