config

package
v0.0.0-...-311251f Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ServiceOrderContainerName              string
	ServiceOrderPort                       string
	ServiceOrderImageVersion               string
	ServiceOrderHTTPCallAuthKey            string
	ServiceOrderHTTPCallAuthTTL            time.Duration
	ServiceOrderHTTPCallTimeout            time.Duration
	ServiceOrderExpirationTTL              time.Duration
	ServiceOrderStockReservationGCCronSpec string

	ServiceProductContainerName   string
	ServiceProductPort            string
	ServiceProductImageVersion    string
	ServiceProductHTTPCallAuthKey string
	ServiceProductHTTPCallAuthTTL time.Duration
	ServiceProductHTTPCallTimeout time.Duration

	ServiceShopContainerName   string
	ServiceShopPort            string
	ServiceShopImageVersion    string
	ServiceShopHTTPCallAuthKey string
	ServiceShopHTTPCallAuthTTL time.Duration
	ServiceShopHTTPCallTimeout time.Duration

	ServiceUserContainerName   string
	ServiceUserPort            string
	ServiceUserImageVersion    string
	ServiceUserHTTPCallAuthKey string
	ServiceUserHTTPCallAuthTTL time.Duration
	ServiceUserHTTPCallTimeout time.Duration
	ServiceUserAuthSecretKey   string
	ServiceUserAuthTTL         time.Duration

	ServiceWarehouseContainerName   string
	ServiceWarehousePort            string
	ServiceWarehouseImageVersion    string
	ServiceWarehouseHTTPCallAuthKey string
	ServiceWarehouseHTTPCallAuthTTL time.Duration
	ServiceWarehouseHTTPCallTimeout time.Duration

	PostgresUser      string
	PostgresPassword  string
	PostgresDB        string
	PostgresInitRetry int
	PostgresInitDelay time.Duration

	PostgresMasterContainerName      string
	PostgresMasterPort               string
	PostgresMasterSchemaInitPath     string
	PostgresMasterWalLevel           string
	PostgresMasterHotStandby         string
	PostgresMasterMaxReplication     string
	PostgresMasterHotStandbyFeedback string
	PostgresMasterLoggingCollector   string
	PostgresMasterLogStatement       string

	PostgresReplicaInitScriptName   string
	PostgresReplicaLoggingCollector string
	PostgresReplicaLogStatement     string

	PostgresReplica1ContainerName string
	PostgresReplica1Port          string

	PostgresReplica2ContainerName string
	PostgresReplica2Port          string

	PostgresReplica3ContainerName string
	PostgresReplica3Port          string

	RedisContainerName string
	RedisPort          string
	RedisPass          string
	RedisBind          string
	RedisLogLevel      string
	RedisAppendFsync   string
	RedisTTL           time.Duration
	RedisInitRetry     int
	RedisInitDelay     time.Duration

	LocalEnvPath    string
	LocalLogPath    string
	LocalSchemaPath string
	LocalScriptPath string

	ContainerBinPath    string
	ContainerScriptPath string
	ContainerLogPath    string

	LogExtension string
	TZ           string
}

Config holds the environment variables

func Read

func Read() *Config

func (*Config) GetPostgresMasterDSN

func (c *Config) GetPostgresMasterDSN() string

func (*Config) GetPostgresReplicasDSN

func (c *Config) GetPostgresReplicasDSN() []string

Jump to

Keyboard shortcuts

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