config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigFile *string
View Source
var FlashStore *sessions.CookieStore

Functions

func LoadConfig

func LoadConfig() error

Types

type GithubConfig

type GithubConfig struct {
	ClientID     string `json:"clientId"`
	ClientSecret string `json:"clientSecret"`
	BaseUrl      string `json:"baseUrl"`
}

type MenshendConfig

type MenshendConfig struct {
	HashKey     string       `json:"hashKey"`
	BlockKey    string       `json:"blockKey"`
	VaultPath   string       `json:"vaultPath"`
	Uris        Uris         `json:"uris"`
	DefaultRole string       `json:"defaultRole"`
	Github      GithubConfig `json:"github"`
	Space       Space        `json:"space"`
}
var Config *MenshendConfig

func (*MenshendConfig) GetLoginPath

func (k *MenshendConfig) GetLoginPath() string
func (k *MenshendConfig) GetLogo() string

func (*MenshendConfig) GetLongDescription

func (k *MenshendConfig) GetLongDescription() string

func (*MenshendConfig) GetName

func (k *MenshendConfig) GetName() string

func (*MenshendConfig) GetServicePath

func (k *MenshendConfig) GetServicePath() string

func (*MenshendConfig) GetShortDescription

func (k *MenshendConfig) GetShortDescription() string

func (*MenshendConfig) Host

func (k *MenshendConfig) Host() string

func (*MenshendConfig) HostWithoutPort

func (k *MenshendConfig) HostWithoutPort() string

func (*MenshendConfig) Scheme

func (k *MenshendConfig) Scheme() string

type Space

type Space struct {
	Description     string `json:"description"`
	LongDescription string `json:"longDescription"`
	Name            string `json:"name"`
}

type Uris

type Uris struct {
	BaseUrl           string `json:"baseUrl"`
	MenshendSubdomain string `json:"menshendSubdomain"`
}

Jump to

Keyboard shortcuts

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