proxy

package
v0.0.0-...-b9d1a8a Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackendStrategy

type BackendStrategy interface {
	NextBackend() conf.Backend
}

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

func (s *Server) AddFrontend(front *conf.Frontend) error

AddFrontend adds the frontend

func (*Server) Init

func (s *Server) Init()

Init func

func (*Server) Ready

func (s *Server) Ready() <-chan struct{}

Ready func

func (*Server) RemoveFrontend

func (s *Server) RemoveFrontend(name string)

RemoveFrontend removes the frontend

func (*Server) RemoveFrontends

func (s *Server) RemoveFrontends()

RemoveFrontends removes all the frontends

func (*Server) ReplaceFrontend

func (s *Server) ReplaceFrontend(front *conf.Frontend) error

ReplaceFrontend replaces the frontend

func (*Server) Run

func (s *Server) Run() error

Run starts the server

func (*Server) Stop

func (s *Server) Stop()

Stop stops the server

Jump to

Keyboard shortcuts

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