Documentation ¶
Index ¶
Constants ¶
View Source
const ( ProcessRequestError = "ProcessRequestError" RouteInvalidError = "RouteInvalidError" RouteServiceUrlInvalidError = "RouteServiceUrlInvalidError" DBCommunicationError = "DBCommunicationError" TcpRouteMappingInvalidError = "TcpRouteMappingInvalidError" )
View Source
const ( UpsertRoute = "UpsertRoute" DeleteRoute = "Delete" ListRoute = "List" EventStreamRoute = "EventStream" ListRouterGroups = "ListRouterGroups" UpsertTcpRouteMapping = "UpsertTcpRouteMapping" DeleteTcpRouteMapping = "DeleteTcpRouteMapping" ListTcpRouteMapping = "ListTcpRouteMapping" EventStreamTcpRoute = "TcpRouteEventStream" )
Variables ¶
View Source
var Routes = rata.Routes{ {Path: "/routing/v1/routes", Method: "POST", Name: UpsertRoute}, {Path: "/routing/v1/routes", Method: "DELETE", Name: DeleteRoute}, {Path: "/routing/v1/routes", Method: "GET", Name: ListRoute}, {Path: "/routing/v1/events", Method: "GET", Name: EventStreamRoute}, {Path: "/routing/v1/router_groups", Method: "GET", Name: ListRouterGroups}, {Path: "/routing/v1/tcp_routes/create", Method: "POST", Name: UpsertTcpRouteMapping}, {Path: "/routing/v1/tcp_routes/delete", Method: "POST", Name: DeleteTcpRouteMapping}, {Path: "/routing/v1/tcp_routes", Method: "GET", Name: ListTcpRouteMapping}, {Path: "/routing/v1/tcp_routes/events", Method: "GET", Name: EventStreamTcpRoute}, }
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { SetToken(string) UpsertRoutes([]db.Route) error Routes() ([]db.Route, error) DeleteRoutes([]db.Route) error RouterGroups() ([]db.RouterGroup, error) UpsertTcpRouteMappings([]db.TcpRouteMapping) error DeleteTcpRouteMappings([]db.TcpRouteMapping) error TcpRouteMappings() ([]db.TcpRouteMapping, error) SubscribeToEvents() (EventSource, error) SubscribeToTcpEvents() (TcpEventSource, error) }
type EventSource ¶
func NewEventSource ¶
func NewEventSource(raw RawEventSource) EventSource
type TcpEvent ¶
type TcpEvent struct { TcpRouteMapping db.TcpRouteMapping Action string }
type TcpEventSource ¶
func NewTcpEventSource ¶
func NewTcpEventSource(raw RawEventSource) TcpEventSource
Directories ¶
Path | Synopsis |
---|---|
fakes
This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter
|
This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter |
cmd
|
|
fakes
This file was generated by counterfeiter
|
This file was generated by counterfeiter |
This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter
|
This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter |
fakes
This file was generated by counterfeiter
|
This file was generated by counterfeiter |
fakes
This file was generated by counterfeiter
|
This file was generated by counterfeiter |
Click to show internal directories.
Click to hide internal directories.