config

package
v0.0.0-...-7bc4f86 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProductionEnv = "production"

	DatabaseTimeout  = 5 * time.Second
	DefaultPageLimit = 100
)

Variables

View Source
var (
	AuthIgnoreMethods []string
	QueueName         = "logs"
	RoutingKeyAddLog  = "logs.created"
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Environment  string `env:"environment"`
	Port         int    `env:"port"`
	SecretAPIKey string `env:"secret_api_key"`
	DatabaseURI  string `env:"database_uri"`
	DatabaseName string `env:"database_name"`
	RabbitMQURL  string `env:"rabbitmq_url"`
}

func GetConfig

func GetConfig() *Config

func LoadConfig

func LoadConfig() Config

Jump to

Keyboard shortcuts

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