Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(name string, factory BackendControllerFactory)
Register register a backend controller to the factory
Types ¶
type BackendConfig ¶
type BackendConfig struct { Host string Namespace string BindIp string TargetServiceName string TargetIP string Ports []string SSL bool SSLPort int Path string TlsCert string TlsKey string }
BackendConfig Config that have all data for backend
type BackendController ¶
type BackendController interface { Name() string AddConfig(name string, config BackendConfig) DeleteConfig(name string) ExitChannel() chan struct{} }
BackendController defines the functions needed to be implemented by every backend.
func CreateBackendController ¶
func CreateBackendController(backendName string) (BackendController, error)
CreateBackendController returns a backend controller object based on the backendname
type BackendControllerFactory ¶
type BackendControllerFactory func() (BackendController, error)
BackendControllerFactory Factory for backend controllers
Click to show internal directories.
Click to hide internal directories.