server

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: Unlicense Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HTTP1 proto = iota + 1
	HTTP2
	HTTP3
)

Variables

This section is empty.

Functions

func Launch

func Launch(srv *Server, handler http.Handler) error

Types

type Server

type Server struct {
	TLSConfig *tls.Config
	// contains filtered or unexported fields
}

func New

func New(addr string, proto proto) *Server

func (*Server) LoadTLSCert

func (srv *Server) LoadTLSCert(cert string, key string) error

func (*Server) SetTLS

func (srv *Server) SetTLS(config *tls.Config)

Jump to

Keyboard shortcuts

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