config

package
v0.0.0-...-dfd90ba Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CSRFConfig = struct {
	Token string
}{
	Token: "CSRF_TOKEN_SECRET",
}
View Source
var ConsulConfig = struct {
	Addr string
}{
	Addr: "CONSUL_ADDR",
}
View Source
var GrpcConfig = struct {
	ServiceName string
	ConsulAddr  string
	Address     string
	Port        string
	MessageSize string
}{
	ServiceName: "GRPC_SERVICE_NAME",
	ConsulAddr:  "GRPC_CONSUL_ADDR",
	Address:     "GRPC_ADDRESS",
	Port:        "GRPC_PORT",
	MessageSize: "GRPC_MESSAGE_SIZE",
}
View Source
var HttpConfig = struct {
	Addr string
}{
	Addr: "HTTP_ADDR",
}
View Source
var MetricsConfig = struct {
	Addr string
}{
	Addr: "METRICS_ADDR",
}
View Source
var MongoConfig = struct {
	URI      string
	Username string
	Password string
}{
	URI:      "MONGO_URI",
	Username: "MONGO_USER",
	Password: "MONGO_PASSWORD",
}
View Source
var PostgresConfig = struct {
	Host     string
	Port     string
	DB       string
	User     string
	Password string
	SSLMode  string
}{
	Host:     "PGHOST",
	Port:     "PGPORT",
	DB:       "POSTGRES_DB",
	User:     "POSTGRES_USER",
	Password: "POSTGRES_PASSWORD",
	SSLMode:  "POSTGRES_SSL",
}
View Source
var RedisConfig = struct {
	Host     string
	Port     string
	Password string
}{
	Host:     "REDIS_HOST",
	Port:     "REDIS_PORT",
	Password: "REDIS_PASSWORD",
}
View Source
var S3BucketConfig = struct {
	BucketName    string
	DefaultRegion string
	Endpoint      string
}{
	BucketName:    "S3_BUCKET_NAME",
	DefaultRegion: "S3_DEFAULT_REGION",
	Endpoint:      "S3_ENDPOINT",
}

Functions

func DefaultConsulConfig

func DefaultConsulConfig()

func DefaultGRPCAuthConfig

func DefaultGRPCAuthConfig()

func DefaultGRPCImageConfig

func DefaultGRPCImageConfig()

func DefaultGRPCSearchConfig

func DefaultGRPCSearchConfig()

func DefaultGRPCShortenerConfig

func DefaultGRPCShortenerConfig()

func DefaultMongoConfig

func DefaultMongoConfig()

func DefaultPickPinConfig

func DefaultPickPinConfig()

func DefaultPostgresConfig

func DefaultPostgresConfig()

func DefaultRedisConfig

func DefaultRedisConfig()

func DefaultS3BucketConfig

func DefaultS3BucketConfig()

func GetConsulAddr

func GetConsulAddr() string

func GetGRPCAddr

func GetGRPCAddr() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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