Documentation ¶
Overview ¶
Package proxy implements types and functions to create and start proxy services.
Index ¶
Constants ¶
View Source
const ( DefaultPort = 18080 HealthRoute = "/sws-proxy/health" )
Variables ¶
This section is empty.
Functions ¶
func BuildDefinition ¶
buildDefinition creats a specification of backend services to proxy to.
Types ¶
type Proxy ¶
type Proxy struct { Name string `yaml:"name"` Port int `yaml:"port"` Image string `yaml:"image"` Definition string `yaml:"definition"` }
Proxy infromation needed to create and start a proxy.
func (Proxy) CreateConf ¶
CreateConf creates proxy configuration.
func (Proxy) ProxySpec ¶
ProxySpec creates an server block in Nginx format in order to proxy traffic to a proxy.
func (Proxy) PublicRunCmd ¶
PublicRunCmd creates a docker run command, exposing the port of the proxy.
Click to show internal directories.
Click to hide internal directories.