configs

package
v0.0.0-...-2f1b4d8 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2020 License: Apache-2.0 Imports: 0 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 {

	// Database
	PGHost     string `envconfig:"PG_HOST" required:"true" default:"localhost"`
	PGPort     string `envconfig:"PG_PORT" required:"true" default:"5432"`
	PGUser     string `envconfig:"PG_USER" required:"true" default:"artiom"`
	PGPassword string `envconfig:"PG_PWD" required:"true" default:"calendar"`
	PGDatabase string `envconfig:"PG_DB" required:"true" default:"bannersdb"`

	// gRPC
	GRPCHost string `envconfig:"GRPC_HOST" required:"true" default:"localhost"`
	GRPCPort string `envconfig:"GRPC_PORT" required:"true" default:"50051"`

	// MQ
	AMPQDSN      string `envconfig:"AMQP_DSN" required:"true" default:"amqp://guest:guest@localhost:5672/"`
	AMPQExchange string `envconfig:"AMQP_EXCH" required:"true" default:"EventNotification"`
	AMPQQueue    string `envconfig:"AMQP_QUEUE" required:"true" default:"Events"`
}

Config represents set of env variables for project configuration.

Jump to

Keyboard shortcuts

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