Documentation
¶
Index ¶
Constants ¶
View Source
const ( EnvLocal EnvType = "local" EnvDev EnvType = "dev" EnvTesting EnvType = "testing" EnvConfigPath string = "APP_CONFIG_PATH" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssignmentCreateQueue ¶
type AuthenticationService ¶
type Config ¶
type Config struct {
Env EnvType `yaml:"env" env-required:"true"`
ApplicationName string `yaml:"application_name" env-required:"true"`
GrpcServer GrpcServer `yaml:"grpc_server" env-required:"true"`
Storage Storage `yaml:"storage" env-required:"true"`
Migration MigrationConfig `yaml:"migrations" env-required:"true"`
Services Services `yaml:"services" env-required:"true"`
Timeouts Timeouts `yaml:"timeouts" env-required:"true"`
Tracing Tracing `yaml:"tracing" env-required:"true"`
Redis Redis `yaml:"redis" env-required:"true"`
Rabbit Rabbit `yaml:"rabbit" env-required:"true"`
}
func (*Config) GetEndpointExecutionTimeout ¶
func (*Config) GetPostgresConnectionString ¶
func (*Config) GetPostgresMigrationConnectionString ¶
func (*Config) GetRabbitConnectionString ¶
func (*Config) GetRedisEntityTTL ¶
type GrpcServer ¶
type MigrationConfig ¶
type Queues ¶
type Queues struct {
AssignmentCreate AssignmentCreateQueue `yaml:"assignment_create" env-required:"true"`
}
type Rabbit ¶
type Rabbit struct {
User string `yaml:"user" env:"RABBIT_USER" env-required:"true"`
Password string `yaml:"password" env:"RABBIT_PASSWORD" env-required:"true"`
Host string `yaml:"host" env:"RABBIT_HOST" env-required:"true"`
Port string `yaml:"port" env:"RABBIT_PORT" env-required:"true"`
Exchange RabbitExchange `yaml:"exchange" env-required:"true"`
Queues Queues `yaml:"queues" env-required:"true"`
}
type RabbitExchange ¶
type Redis ¶
type Redis struct {
User string `yaml:"user" env:"REDIS_USER" env-required:"true"`
Password string `yaml:"password" env:"REDIS_PASSWORD" env-required:"true"`
Host string `yaml:"host" env:"REDIS_HOST" env-required:"true"`
Port string `yaml:"port" env:"REDIS_PORT" env-required:"true"`
DatabaseNumber string `yaml:"database_number" env:"REDIS_DATABASE_NUMBER" env-required:"true"`
EntityTTL string `yaml:"entity_ttl" env:"REDIS_ENTITY_TTL" env-required:"true"`
}
type Services ¶
type Services struct {
Authentication AuthenticationService `yaml:"authentication_service" env-required:"true"`
}
type Storage ¶
type Storage struct {
Host string `yaml:"host" env:"POSTGRES_HOST" env-required:"true"`
Port string `yaml:"port" env:"POSTGRES_PORT" env-required:"true"`
DatabaseName string `yaml:"database_name" env:"POSTGRES_DATABASE_NAME" env-required:"true"`
User string `yaml:"user" env:"POSTGRES_USER" env-required:"true"`
Password string `yaml:"password" env:"POSTGRES_PASSWORD" env-required:"true"`
}
Click to show internal directories.
Click to hide internal directories.