config

package
v0.0.0-...-e62b3d3 Latest Latest
Warning

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

Go to latest
Published: May 29, 2016 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	BindPort int `mapstructure:"port" yaml:"port,omitempty"`

	BindHost string `mapstructure:"host" yaml:"host,omitempty"`

	Issuer string `mapstructure:"issuer" yaml:"issuer,omitempty"`

	SystemSecret []byte `mapstructure:"system_secret" yaml:"-"`

	DatabaseURL string `mapstructure:"database_url" yaml:"database_url,omitempty"`

	ConsentURL string `mapstructure:"consent_url" yaml:"consent_url,omitempty"`

	ClusterURL string `mapstructure:"cluster_url" yaml:"cluster_url,omitempty"`

	ClientID string `mapstructure:"client_id" yaml:"client_id,omitempty"`

	ClientSecret string `mapstructure:"client_secret" yaml:"client_secret,omitempty"`

	ForceHTTP bool `mapstructure:"foolishly_force_http" yaml:"-"`

	sync.Mutex
	// contains filtered or unexported fields
}

func (*Config) Context

func (c *Config) Context() *Context

func (*Config) GetAccessTokenLifespan

func (c *Config) GetAccessTokenLifespan() time.Duration

func (*Config) GetAddress

func (c *Config) GetAddress() string

func (*Config) GetClusterURL

func (c *Config) GetClusterURL() string

func (*Config) GetIssuer

func (c *Config) GetIssuer() string

func (*Config) GetSystemSecret

func (c *Config) GetSystemSecret() []byte

func (*Config) OAuth2Client

func (c *Config) OAuth2Client(cmd *cobra.Command) *http.Client

func (*Config) Persist

func (c *Config) Persist() error

func (*Config) Resolve

func (c *Config) Resolve(join ...string) *url.URL

type Context

type Context struct {
	Connection interface{}

	Hasher         hash.Hasher
	Warden         firewall.Firewall
	LadonManager   ladon.Manager
	FositeStrategy core.CoreStrategy
	FositeStore    pkg.FositeStorer
	KeyManager     jwk.Manager
}

type MemoryConnection

type MemoryConnection struct{}

type RethinkDBConnection

type RethinkDBConnection struct {
	URL *url.URL
	// contains filtered or unexported fields
}

func (*RethinkDBConnection) CreateTableIfNotExists

func (c *RethinkDBConnection) CreateTableIfNotExists(table string)

func (*RethinkDBConnection) GetSession

func (c *RethinkDBConnection) GetSession() *r.Session

Jump to

Keyboard shortcuts

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