Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddService ¶ added in v0.2.0
AddService adds new service to the filepath
func NewErgoProxy ¶
func NewErgoProxy(config *Config) *httputil.ReverseProxy
NewErgoProxy returns the new reverse proxy.
func ServeProxy ¶ added in v0.0.5
ServeProxy listens & serves the HTTP proxy.
Types ¶
type Config ¶
type Config struct { Port string Domain string URLPattern string Verbose bool Services []Service ConfigFile string }
Config holds the configuration for the proxy.
func (*Config) GetService ¶
GetService gets the service for the given host.
type Service ¶
Service holds the details of the service (Name and URL)
func LoadServices ¶ added in v0.2.0
LoadServices loads the services from filepath, returns an error if the configuration could not be parsed
func NewService ¶ added in v0.2.0
NewService gets the new service.
Click to show internal directories.
Click to hide internal directories.