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 Config ¶
type Config struct { DatabaseDSN string `yaml:"database_dsn"` HostName string `yaml:"host_name"` Graph GraphQL `yaml:"graphql"` Auth Auth0 `yaml:"auth"` Logging Logging `yaml:"logging"` }
func NewTestConfig ¶
func NewTestConfig() *Config
NewTestConfig returns configuration suitable for testing.
Click to show internal directories.
Click to hide internal directories.