Documentation ¶
Overview ¶
Code generated by github.com/gokultp/go-envparser. DO NOT EDIT.
Code generated by github.com/gokultp/go-envparser. DO NOT EDIT.
Code generated by github.com/gokultp/go-envparser. DO NOT EDIT.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Log *commonconfigs.LogConfig RedisConfig *RedisConfig Port *string `env:"GATEWAY_PORT"` SessionTTLDays *int `env:"SESSION_TTL_DAYS"` CSRFTTLSeconds *int `env:"CSRF_TTL_SECONDS"` HashKey *string `env:"HASH_KEY"` BlockKey *string `env:"BLOCK_KEY"` GithubConfig *commonconfigs.GithubConfig MongoURL *string `env:"MONGO_URL"` UsersServiceConfig *UsersServiceConfig }
Config keeps the service level config data for luffy
type RedisConfig ¶
type RedisConfig struct { Port *string `env:"REDIS_PORT"` Host *string `env:"REDIS_HOST"` Password *string `env:"REDIS_PASSWORD"` }
RedisConfig encapsulates the redis configs
func (*RedisConfig) DecodeEnv ¶
func (t *RedisConfig) DecodeEnv() error
type UsersServiceConfig ¶
type UsersServiceConfig struct { URL *string `env:"USER_SERVICE_URL"` InitConnections *int `env:"USER_SERVICE_INIT_CONN"` ConnectionCapacity *int `env:"USER_SERVICE_CONN_CAPACITY"` TTL *int `env:"USER_SERVICE_CONN_TTL"` }
UsersServiceConfig encapsulates the user service grpc
func (*UsersServiceConfig) DecodeEnv ¶
func (t *UsersServiceConfig) DecodeEnv() error
Click to show internal directories.
Click to hide internal directories.