proxy

package module
v0.0.0-...-0877d4c Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2014 License: MIT Imports: 15 Imported by: 0

README

proxy

Proxy

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ConnectTimeout     time.Duration = 10 * time.Second
	RetryListenTimeout time.Duration = 5 * time.Second
)
View Source
var DefaultLogger *l.Logger

Functions

func Listen

func Listen(configFilename string)

Types

type Config

type Config struct {
	Routes  map[string]Entry `json:"routes"`
	Port    int              `json:"port"`
	TLSPort int              `json:"tls_port"`
}

func GetConfig

func GetConfig(filename string) (*Config, error)

func (*Config) Save

func (this *Config) Save(filename string) error

type Entry

type Entry struct {
	Endpoints []string `json:"endpoints"`
	TLS       TLS      `json:"tls"`
}

func (Entry) String

func (this Entry) String() string

type TLS

type TLS struct {
	Certificate string `json:"certificate"`
	Key         string `json:"key"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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