Documentation ¶
Index ¶
- type BackendStrategy
- type RoundRobinStrategy
- type Server
- func (s *Server) AddFrontend(front *conf.Frontend) error
- func (s *Server) Init()
- func (s *Server) Ready() <-chan struct{}
- func (s *Server) RemoveFrontend(name string)
- func (s *Server) RemoveFrontends()
- func (s *Server) ReplaceFrontend(front *conf.Frontend) error
- func (s *Server) Run() error
- func (s *Server) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackendStrategy ¶
BackendStrategy interface
type RoundRobinStrategy ¶
type RoundRobinStrategy struct {
// contains filtered or unexported fields
}
RoundRobinStrategy interface
func (*RoundRobinStrategy) NextBackend ¶
func (s *RoundRobinStrategy) NextBackend() conf.Backend
NextBackend returns the next backend configuration
type Server ¶
type Server struct { Name string *zap.Logger *conf.Binding // contains filtered or unexported fields }
Server listens and proxies connections
func (*Server) AddFrontend ¶
AddFrontend adds the frontend
func (*Server) RemoveFrontend ¶
RemoveFrontend removes the frontend
func (*Server) RemoveFrontends ¶
func (s *Server) RemoveFrontends()
RemoveFrontends removes all the frontends
func (*Server) ReplaceFrontend ¶
ReplaceFrontend replaces the frontend
Click to show internal directories.
Click to hide internal directories.