Documentation ¶
Index ¶
- type Config
- type ConfigConnections
- type ConfigDatabaseMongo
- type ConfigDatabasePostgres
- type ConfigService
- type ConfigServices
- type Secret
- type SecretConnections
- type SecretDatabaseMongo
- type SecretDatabasePostgres
- type Service
- func (s Service) GetAvatarConfig() (*ConfigService, error)
- func (s Service) GetMongoConfig(name string) (*ConfigDatabaseMongo, error)
- func (s Service) GetMongoSecret(name string) (*SecretDatabaseMongo, error)
- func (s Service) GetPostgresConfig(name string) (*ConfigDatabasePostgres, error)
- func (s Service) GetPostgresSecret(name string) (*SecretDatabasePostgres, error)
- type TypeCfg
- type TypeDB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Connections ConfigConnections `yaml:"connections"` Services ConfigServices `yaml:"services"` }
type ConfigConnections ¶
type ConfigConnections struct { Mongo map[string]ConfigDatabaseMongo `yaml:"mongo"` Postgres map[string]ConfigDatabasePostgres `yaml:"postgres"` }
type ConfigDatabaseMongo ¶
type ConfigDatabaseMongo struct { }
type ConfigDatabasePostgres ¶
type ConfigService ¶
type ConfigServices ¶
type ConfigServices struct {
Avatar ConfigService
}
type Secret ¶
type Secret struct {
Connections SecretConnections `yaml:"connections"`
}
type SecretConnections ¶
type SecretConnections struct { Postgres map[string]SecretDatabasePostgres `yaml:"postgres"` Mongo map[string]SecretDatabaseMongo `yaml:"mongo"` }
type SecretDatabaseMongo ¶
type SecretDatabaseMongo struct { }
type SecretDatabasePostgres ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (Service) GetAvatarConfig ¶
func (s Service) GetAvatarConfig() (*ConfigService, error)
func (Service) GetMongoConfig ¶
func (s Service) GetMongoConfig(name string) (*ConfigDatabaseMongo, error)
func (Service) GetMongoSecret ¶
func (s Service) GetMongoSecret(name string) (*SecretDatabaseMongo, error)
func (Service) GetPostgresConfig ¶
func (s Service) GetPostgresConfig(name string) (*ConfigDatabasePostgres, error)
func (Service) GetPostgresSecret ¶
func (s Service) GetPostgresSecret(name string) (*SecretDatabasePostgres, error)
Click to show internal directories.
Click to hide internal directories.