Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func InitEnvironment ¶
func InitEnvironment()
Types ¶
type AuthConfig ¶
type CommonConfig ¶
type DataStoreConfig ¶
type DataStoreConfig struct { URL string `yaml:"URL"` TLS *meta.TLSCertificate `yaml:"TLS"` Database string `yaml:"database"` Collection string `yaml:"collection"` LikesCollection string `yaml:"likesCollection"` RemoteCollection string `yaml:"remoteCollection"` Login string `yaml:"login"` Password string `yaml:"password"` Timeout int `yaml:"timeout"` }
type MailConfig ¶
type PersonalConfig ¶
type SecurityConfig ¶
type SecurityConfig struct {
TLSCertificate *meta.TLSCertificate `yaml:"tlsCertificate"`
}
type ServiceConfig ¶
type ServiceConfig struct { Common CommonConfig `yaml:"commonConfig"` Security SecurityConfig `yaml:"securityConfig"` Auth AuthConfig `yaml:"authConfig"` Mail MailConfig `yaml:"mailConfig"` FallbackMail MailConfig `yaml:"fallbackMailConfig"` Mongo DataStoreConfig `yaml:"mongoConfig"` Postgres DataStoreConfig `yaml:"postgresConfig"` Redis DataStoreConfig `yaml:"redisConfig"` Personal PersonalConfig `yaml:"personalConfig"` }
func ReadServiceConfig ¶
func ReadServiceConfig(filename string) (sc ServiceConfig, err error)
Click to show internal directories.
Click to hide internal directories.