route

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoint

type Endpoint struct {
	IP   string
	Port Port
}

Endpoint defines a given TCP Endpoint

type HTTP

type HTTP struct {
	Name     string
	Backends []Endpoint
}

HTTP is a route definition for HTTP traffic

type Port

type Port int

type Router

type Router interface {
	Connect(natsServers []cfconfig.MessageBusServer, logger lager.Logger)
	TCP(routes []*TCP) error
	HTTP(routes []*HTTP) error
}

Router consumes routes

type Source

type Source interface {
	TCP() ([]*TCP, error)
	HTTP() ([]*HTTP, error)
}

Source provides routes

type TCP

type TCP struct {
	Frontend Port
	Backends []Endpoint
}

TCP is a route definition for TCP traffic

Directories

Path Synopsis
This file was generated by counterfeiter This file was generated by counterfeiter
This file was generated by counterfeiter This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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