Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration interface { AppConfig() AppConfig ApiConfig() ApiConfig PostgresConfig() PostgresConfig GrpcConfig() GrpcConfig QueueConfig() QueueConfig }
func Init ¶
func Init( v *viper.Viper, ) Configuration
type GrpcConfig ¶
type GrpcConfig interface {
Port() string
}
func NewGrpcConfig ¶
func NewGrpcConfig(env *viper.Viper) GrpcConfig
type PostgresConfig ¶
type PostgresConfig interface { Host() string Port() string Database() string User() string Password() string ConnectionURL() string }
func NewPostgresConfig ¶
func NewPostgresConfig(env *viper.Viper) PostgresConfig
type QueueConfig ¶
type QueueConfig interface { NatsClientName() string NatsURL() string NatsUsername() string NatsPassword() string }
func NewQueueConfig ¶
func NewQueueConfig(env *viper.Viper) QueueConfig
Click to show internal directories.
Click to hide internal directories.