Documentation
¶
Overview ¶
Package cfg is the configuration package hold all config objects
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthProvider ¶
type AuthProvider struct { Provider string ClientKey string Secret string Domain string // If needed, like with auth0 Scopes []string }
AuthProvider defines the configuration for the Goth config
type Cache ¶
type Cache struct { Server string Password string Timeout string // time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". ex: 500ms }
Cache defines the configuration for the cache
type DB ¶
type DB struct { Dialect string DSN string SeedDB bool LogMode bool AutoMigrate bool MaxCon int MaxIdleCon int }
DB defines the configuration for the DB config
type Server ¶
type Server struct { ServiceName string Version string Env string Host string Port string URISchema string ServiceVersion string SessionSecret string JWT JWT Cache Cache Database DB MDB MongoDB Sentry Sentry AuthProviders []AuthProvider }
Server defines the configuration for the server
func (*Server) ListenEndpoint ¶
ListenEndpoint builds the endpoint string (host + port)
func (*Server) SchemaVersionedEndpoint ¶
SchemaVersionedEndpoint builds the schema endpoint string (schema + host + port + version)
func (*Server) VersionedEndpoint ¶
VersionedEndpoint builds the endpoint `string (host + port + version)
Click to show internal directories.
Click to hide internal directories.