configs

package
v0.0.0-...-dcf5b65 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2023 License: MIT Imports: 5 Imported by: 0

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

func (*Config) DecodeEnv

func (t *Config) DecodeEnv() error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL