Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RouteAppenderFactory ¶
type RouteAppenderFactory interface {
NewAppender(ctx context.Context, runtimeConfiguration *runtime.Configuration) types.RouteAppender
}
RouteAppenderFactory the route appender factory interface
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is the reverse-proxy/load-balancer engine
func NewServer ¶
func NewServer(staticConfiguration static.Configuration, provider provider.Provider, entryPoints TCPEntryPoints, tlsManager *tls.Manager) *Server
NewServer returns an initialized Server.
func (*Server) AddListener ¶
func (s *Server) AddListener(listener func(dynamic.Configuration))
AddListener adds a new listener function used when new configuration is provided
type TCPEntryPoint ¶
type TCPEntryPoint struct { RouteAppenderFactory RouteAppenderFactory // contains filtered or unexported fields }
TCPEntryPoint is the TCP server
func NewTCPEntryPoint ¶
func NewTCPEntryPoint(ctx context.Context, configuration *static.EntryPoint) (*TCPEntryPoint, error)
NewTCPEntryPoint creates a new TCPEntryPoint
func (*TCPEntryPoint) Shutdown ¶
func (e *TCPEntryPoint) Shutdown(ctx context.Context)
Shutdown stops the TCP connections
type TCPEntryPoints ¶
type TCPEntryPoints map[string]*TCPEntryPoint
TCPEntryPoints holds a map of TCPEntryPoint (the entrypoint names being the keys)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.