proxy

package
v0.1.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2017 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewErgoProxy

func NewErgoProxy(config *Config) *httputil.ReverseProxy

func ServeProxy added in v0.0.5

func ServeProxy(config *Config) error

Types

type Config

type Config struct {
	Port       string
	Domain     string
	UrlPattern string
	Verbose    bool
	Services   []Service
}

func NewConfig added in v0.1.4

func NewConfig() *Config

func (*Config) GetService

func (c *Config) GetService(host string) *Service

type Service

type Service struct {
	Name string
	Url  string
}

func LoadConfig

func LoadConfig(filepath string) []Service

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL