Documentation ¶
Index ¶
- type Config
- func (c *Config) Context() *Context
- func (c *Config) GetAccessTokenLifespan() time.Duration
- func (c *Config) GetAddress() string
- func (c *Config) GetClusterURL() string
- func (c *Config) GetIssuer() string
- func (c *Config) GetSystemSecret() []byte
- func (c *Config) OAuth2Client(cmd *cobra.Command) *http.Client
- func (c *Config) Persist() error
- func (c *Config) Resolve(join ...string) *url.URL
- type Context
- type MemoryConnection
- type RethinkDBConnection
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) GetAccessTokenLifespan ¶
func (*Config) GetAddress ¶
func (*Config) GetClusterURL ¶
func (*Config) GetSystemSecret ¶
type MemoryConnection ¶
type MemoryConnection struct{}
type RethinkDBConnection ¶
func (*RethinkDBConnection) CreateTableIfNotExists ¶
func (c *RethinkDBConnection) CreateTableIfNotExists(table string)
func (*RethinkDBConnection) GetSession ¶
func (c *RethinkDBConnection) GetSession() *r.Session
Click to show internal directories.
Click to hide internal directories.