server

package
v1.7.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2018 License: MIT Imports: 58 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHeaderRewriter added in v1.4.0

func NewHeaderRewriter(trustedIPs []string, insecure bool) (forward.ReqRewriter, error)

NewHeaderRewriter Create a header rewriter

Types

type EntryPoint

type EntryPoint struct {
	InternalRouter   types.InternalRouter
	Configuration    *configuration.EntryPoint
	OnDemandListener func(string) (*tls.Certificate, error)
	TLSALPNGetter    func(string) (*tls.Certificate, error)
	CertificateStore *traefiktls.CertificateStore
}

EntryPoint entryPoint information (configuration + internalRouter)

type Server

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

Server is the reverse-proxy/load-balancer engine

func NewServer

func NewServer(globalConfiguration configuration.GlobalConfiguration, provider provider.Provider, entrypoints map[string]EntryPoint) *Server

NewServer returns an initialized Server.

func (*Server) AddListener added in v1.6.0

func (s *Server) AddListener(listener func(types.Configuration))

AddListener adds a new listener function used when new configuration is provided

func (*Server) Close

func (s *Server) Close()

Close destroys the server

func (*Server) Start

func (s *Server) Start()

Start starts the server.

func (*Server) StartWithContext added in v1.6.0

func (s *Server) StartWithContext(ctx context.Context)

StartWithContext starts the server and Stop/Close it when context is Done

func (*Server) Stop

func (s *Server) Stop()

Stop stops the server

func (*Server) Wait

func (s *Server) Wait()

Wait blocks until server is shutted down.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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