config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2015 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthConfig

type AuthConfig struct {
	Service      string   `hcl:"service"`
	ClientID     string   `hcl:"client_id"`
	ClientSecret string   `hcl:"client_secret"`
	RedirectUrl  string   `hcl:"redirect_url"`
	Restrictions []string `hcl:"restrictions"`
	Endpoint     string   `hcl:endpoint`
	ApiEndpoint  string   `hcl:api_endpoint`
}

type Config

type Config struct {
	Addr       string        `hcl:"addr"`
	Domain     string        `hcl:"domain"`
	SessionKey string        `hcl:"session_key"`
	Auth       AuthConfig    `hcl:"auth"`
	Proxies    ProxiesConfig `hcl:"proxies"`
}

func LoadConfig

func LoadConfig(path string) (*Config, error)

type ProxiesConfig

type ProxiesConfig map[string]ProxySettingConfig

type ProxySettingConfig

type ProxySettingConfig struct {
	Path string `hcl:"path"`
	Dest string `hcl:"dest"`
}

Jump to

Keyboard shortcuts

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