Documentation
¶
Index ¶
- Constants
- type BraintreeConfig
- type Config
- func (c *Config) AmqpConnectionString() string
- func (c *Config) AwsConfigFilePath() string
- func (c *Config) Braintree() *BraintreeConfig
- func (c *Config) DB() (*sqlx.DB, error)
- func (c *Config) Environment() string
- func (c Config) FeaturesConfig() Features
- func (c *Config) FilesystemConfig() FilesystemConfig
- func (c *Config) GetASService() *autoscaling.AutoScaling
- func (c *Config) GetAwsConfig() *aws.Config
- func (c *Config) GetCWService() *cloudwatch.CloudWatch
- func (c *Config) GetEC2Service() *ec2.EC2
- func (self *Config) GetSshConfig() (*ssh.ClientConfig, error)
- func (c *Config) HttpConfig() HttpConfig
- func (c *Config) InfluxDBConfig() InfluxDBConfig
- func (c *Config) LimitsStoreConfig() LimitsStoreConfig
- func (c *Config) MailConfig() MailConfig
- func (c Config) OAuthConfig() OAuthConfig
- func (c *Config) PgDataSourceName() (string, error)
- func (c *Config) RedisConfig() redisConfig
- func (c *Config) RedisConnOpts(dbNum int64) *redis.Options
- func (c *Config) URLConfig() *URLConfig
- type Features
- type FilesystemConfig
- type HttpConfig
- type InfluxDBConfig
- type LimitsStoreConfig
- type MailConfig
- type OAuthConfig
- type OAuthProviderConfig
- type URLConfig
Constants ¶
View Source
const InstanceDeadline = 2 * time.Hour
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BraintreeConfig ¶
type BraintreeConfig struct {
Environment string
MerchantId string
PublicKey string
PrivateKey string
CacheFile string
}
func (*BraintreeConfig) NewClient ¶
func (self *BraintreeConfig) NewClient() *braintree.Braintree
type Config ¶
type Config struct {
Root string
// contains filtered or unexported fields
}
func (*Config) AmqpConnectionString ¶
func (*Config) AwsConfigFilePath ¶
func (*Config) Braintree ¶
func (c *Config) Braintree() *BraintreeConfig
func (*Config) Environment ¶
func (Config) FeaturesConfig ¶
func (*Config) FilesystemConfig ¶
func (c *Config) FilesystemConfig() FilesystemConfig
func (*Config) GetASService ¶
func (c *Config) GetASService() *autoscaling.AutoScaling
func (*Config) GetAwsConfig ¶
func (*Config) GetCWService ¶
func (c *Config) GetCWService() *cloudwatch.CloudWatch
func (*Config) GetEC2Service ¶
func (*Config) GetSshConfig ¶
func (self *Config) GetSshConfig() (*ssh.ClientConfig, error)
func (*Config) HttpConfig ¶
func (c *Config) HttpConfig() HttpConfig
Returns the HTTP config, interface{} as the keys are a mix of strings and integers
func (*Config) InfluxDBConfig ¶
func (c *Config) InfluxDBConfig() InfluxDBConfig
func (*Config) LimitsStoreConfig ¶
func (c *Config) LimitsStoreConfig() LimitsStoreConfig
func (*Config) MailConfig ¶
func (c *Config) MailConfig() MailConfig
func (Config) OAuthConfig ¶
func (c Config) OAuthConfig() OAuthConfig
func (*Config) PgDataSourceName ¶
func (*Config) RedisConfig ¶
func (c *Config) RedisConfig() redisConfig
type Features ¶
type Features struct {
OAuthGithubImportRepository bool `json:"oauth.github.import-repository"`
OAuthGithubAuthentication bool `json:"oauth.github.authentication"`
TrialEnabled bool `json:"trial-period.enabled"`
LimitsEnabled bool `json:"limits.enabled"`
GuestAccountEnabled bool `json:"guest-account.enabled"`
PublicProjectsEnabled bool `json:"public-projects.enabled"`
}
type FilesystemConfig ¶
type HttpConfig ¶
type HttpConfig struct {
Port int `json:"port"`
Bind string `json:"bind"`
UserHmacSecret string `json:"-"`
WebSocketPort int `json:"websocketPort"`
WebSocketBind string `json:"websocketBind"`
MaxSimultaneousConns int
}
func (HttpConfig) String ¶
func (h HttpConfig) String() string
func (HttpConfig) WebSocket ¶
func (h HttpConfig) WebSocket() string
type InfluxDBConfig ¶
type LimitsStoreConfig ¶
type MailConfig ¶
type MailConfig struct {
FromAddress string `json:"fromAddress"`
}
type OAuthConfig ¶
type OAuthConfig struct {
Providers map[string]OAuthProviderConfig
}
type OAuthProviderConfig ¶
Click to show internal directories.
Click to hide internal directories.