Documentation ¶
Index ¶
Constants ¶
View Source
const ( AuthProviderLocal = "local" AuthProviderAuth0 = "auth0" AuthProviderMock = "mock" )
Variables ¶
This section is empty.
Functions ¶
func InitConfig ¶
InitConfig reads in config file and ENV variables if set. Should be called once at app startup.
Types ¶
type Auth0 ¶
type Auth0 struct { Provider string `yaml:"provider" mapstructure:"provider"` Domain string `yaml:"domain" mapstructure:"domain"` ClientID string `yaml:"client_id" mapstructure:"client_id"` ClientSecret string `yaml:"client_secret" mapstructure:"client_secret"` Audience string `yaml:"audience" mapstructure:"audience"` ConnectionID string `yaml:"connection_id" mapstructure:"connection_id"` }
type Config ¶
type Config struct { DatabaseDSN string `yaml:"database_dsn" mapstructure:"database_dsn"` HostName string `yaml:"host_name" mapstructure:"host_name"` Graph GraphQL `yaml:"graphql" mapstructure:"graphql"` Auth Auth0 `yaml:"auth" mapstructure:"auth"` Logging Logging `yaml:"logging" mapstructure:"logging"` }
func NewTestConfig ¶
func NewTestConfig() *Config
NewTestConfig returns configuration suitable for testing.
Click to show internal directories.
Click to hide internal directories.