Documentation ¶
Index ¶
Constants ¶
View Source
const ( TCP_MAPPING_BASE_KEY string = "/v1/tcp_routes/router_groups" HTTP_ROUTE_BASE_KEY string = "/routes" )
View Source
const (
KeyNotFound = "KeyNotFound"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DB ¶
type DB interface { ReadRoutes() ([]Route, error) SaveRoute(route Route) error DeleteRoute(route Route) error ReadTcpRouteMappings() ([]TcpRouteMapping, error) SaveTcpRouteMapping(tcpMapping TcpRouteMapping) error DeleteTcpRouteMapping(tcpMapping TcpRouteMapping) error Connect() error Disconnect() error WatchRouteChanges(filter string) (<-chan storeadapter.WatchEvent, chan<- bool, <-chan error) }
type RouterGroup ¶
type RouterGroup struct { Guid string `json:"guid"` Name string `json:"name"` Type RouterGroupType `json:"type"` }
type RouterGroupType ¶
type RouterGroupType string
type TcpRouteMapping ¶
type TcpRouteMapping struct { TcpRoute HostPort uint16 `json:"backend_port"` HostIP string `json:"backend_ip"` }
func NewTcpRouteMapping ¶
func NewTcpRouteMapping(routerGroupGuid string, externalPort uint16, hostIP string, hostPort uint16) TcpRouteMapping
func (TcpRouteMapping) String ¶
func (m TcpRouteMapping) String() string
Click to show internal directories.
Click to hide internal directories.