Documentation
¶
Index ¶
- Constants
- type Config
- func (cfg *Config) GetEndpointExecutionTimeout() time.Duration
- func (cfg *Config) GetJwtAccessTokenTTL() time.Duration
- func (cfg *Config) GetJwtRefreshTokenTTL() time.Duration
- func (cfg *Config) GetMigrationPostgresConnectionString() string
- func (cfg *Config) GetPostgresConnectionString() string
- func (cfg *Config) GetRabbitConnectionString() string
- func (cfg *Config) GetRedisEntityTTL() time.Duration
- type CredentialsCreateQueue
- type EnvType
- type GrpcServer
- type Jwt
- type MigrationConfig
- type Queues
- type Rabbit
- type RabbitExchange
- type Redis
- type Storage
- type Timeouts
- type Tracing
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 Config ¶
type Config struct { Env EnvType `yaml:"env" env-required:"true"` ApplicationName string `yaml:"application_name" env-required:"true"` Storage Storage `yaml:"storage" env-required:"true"` GrpcServer GrpcServer `yaml:"grpc_server" env-required:"true"` Migration MigrationConfig `yaml:"migrations" env-required:"true"` Timeouts Timeouts `yaml:"timeouts" env-required:"true"` Jwt Jwt `yaml:"jwt" 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) GetJwtAccessTokenTTL ¶
func (*Config) GetJwtRefreshTokenTTL ¶
func (*Config) GetMigrationPostgresConnectionString ¶
func (*Config) GetPostgresConnectionString ¶
func (*Config) GetRabbitConnectionString ¶
func (*Config) GetRedisEntityTTL ¶
type CredentialsCreateQueue ¶
type GrpcServer ¶
type MigrationConfig ¶
type Queues ¶
type Queues struct {
CredentialsCreate CredentialsCreateQueue `yaml:"credentials_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 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"` }
type Timeouts ¶
type Timeouts struct {
EndpointExecutionTimeoutMS string `yaml:"endpoint_execution_timeout_ms" env:"ENDPOINT_EXECUTION_TIMEOUT_MS" env-required:"true"`
}
type Tracing ¶
type Tracing struct { Host string `yaml:"host" env:"JAEGER_HOST" env-required:"true"` Port string `yaml:"port" env:"JAEGER_PORT" env-required:"true"` CredentialsTracerName string `yaml:"credentials_tracer_name" env:"CREDENTIALS_TRACER_NAME" env-required:"true"` TokenTracerName string `yaml:"token_tracer_name" env:"TOKEN_TRACER_NAME" env-required:"true"` }
Click to show internal directories.
Click to hide internal directories.