config

package
v0.0.0-...-6a52fcc Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDevEnv

func IsDevEnv() bool

func IsProdEnv

func IsProdEnv() bool

func IsTestEnv

func IsTestEnv() bool

Types

type AppConfig

type AppConfig struct {
	AppEnv  string
	AppName string
}

type Config

type Config struct {
	App              AppConfig
	Grpc             GrpcConfig
	Http             HttpConfig
	Postgres         PostgresConfig
	SampleExtService GrpcConfig
	Kafka            KafkaConfig
	Sentry           SentryConfig
}
var BaseConfig *Config

type GrpcConfig

type GrpcConfig struct {
	Port int
	Host string
}

type HttpConfig

type HttpConfig struct {
	Port int
	Host string
}

type KafkaConfig

type KafkaConfig struct {
	Enabled       bool
	LogEvents     bool
	ClientId      string
	ClientGroupId string
	ClientBrokers []string
	Topic         string
}

type PostgresConfig

type PostgresConfig struct {
	Host            string
	Port            string
	User            string
	Pass            string
	DBName          string
	MaxConn         int
	MaxIdleConn     int
	MaxLifeTimeConn int
	SslMode         string
}

type SentryConfig

type SentryConfig struct {
	Dsn string
}

Jump to

Keyboard shortcuts

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