server

package
v0.0.0-...-9600303 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

func NewServer

func NewServer(cfg ServerConfig) *Server

func (*Server) Debug

func (s *Server) Debug(addr string) error

func (*Server) Listen

func (s *Server) Listen(events <-chan []config.ConfigEvent)

Listen listens to config events

func (*Server) ProcessEvent

func (s *Server) ProcessEvent(e config.ConfigEvent)

ProcessEvent processes a single config event

func (*Server) ProcessEvents

func (s *Server) ProcessEvents(events []config.ConfigEvent)

ProcessEvents processes a list of config events

func (*Server) Serve

func (s *Server) Serve() error

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*Server) Shutdown

func (s *Server) Shutdown() error

func (*Server) ValidateHost

func (s *Server) ValidateHost(ctx context.Context, host string) error

ValidateHost implements autocert.HostPolicy

type ServerConfig

type ServerConfig struct {
	ConfigFile        string
	CertsDir          string
	NoCert            bool
	WatchDockerEvents bool
	EnableHTTP2       bool
	DiscardHeaders    []string
	ExtraHeaders      map[string]string
	PHPAddr           string
}

Jump to

Keyboard shortcuts

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