types

package
v0.0.0-...-fe2ccbf Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2016 License: BSD-2-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Annotator

type Annotator interface {
	Annotate(services []*Service) error
}

type ConfigGenerator

type ConfigGenerator interface {
	Generate(services []*Service) error
}

A ConfigGenerator creates a configuration from several services.

type Host

type Host struct {
	Ip   string
	Port int
}

A host is an IP and a port where traffic should be proxied to.

type Notifier

type Notifier interface {
	Start(refresh chan string, quit chan int, wg *sync.WaitGroup)
}

A Notifier recognizes changes in your system. For example, it could regularly poll an API or listen on an event bus. If something changes, it notifies the Manager to trigger a refresh.

type Service

type Service struct {
	ApplicationProtocol string
	Config              string
	Domains             []string
	Hosts               []Host
	Id                  string
	Port                int
	ProxyPath           string
	ServicePort         int
	Source              string
	TransportProtocol   string
}

func (*Service) ListenPort

func (s *Service) ListenPort() int

Figure out the port on which a service is listening.

type ServiceGenerator

type ServiceGenerator interface {
	Generate() ([]*Service, error)
}

A ServiceGenerator reads information about nodes and creates a list of services.

Jump to

Keyboard shortcuts

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