backends

package
v0.0.0-...-ca7731e Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2016 License: Apache-2.0 Imports: 3 Imported by: 0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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