Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RouterDomain = util.Env("ROUTER_DOMAIN", "")
RouterDomain is the router's domain
Functions ¶
This section is empty.
Types ¶
type Helper ¶
type Helper struct {
// contains filtered or unexported fields
}
Helper defines a structure for hooking up to the reverse proxy tool within the cluster. Current implementation is designed to add frontend and backend entries in consul which is a traefik backend
func NewHelper ¶
NewHelper creates a new router helper object. Returns error if unable to connector to consul
func (*Helper) AddBackend ¶
AddBackend adds the connector's http server as a backend server.
func (*Helper) AddFrontend ¶
AddFrontend adds a frontend to receive traffic from public internet
Click to show internal directories.
Click to hide internal directories.