config

package
v0.0.0-...-a949d81 Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 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 AWSConfig

type AWSConfig struct {
	Region          string
	AccessKey       string
	SecretAccessKey string
	BucketName      string
}

type Auth

type Auth struct {
	SecretKey string
}

type Config

type Config struct {
	DB      DBConfig
	Logging LoggingConfig
	AWS     AWSConfig
}

func MustParseConfig

func MustParseConfig() Config

MustParseConfig loads the configuration from the environment

type DBConfig

type DBConfig struct {
	Username         string
	Password         string
	Host             string
	Port             int
	Database         string
	ConnectTimeout   int
	DisableSslMode   bool
	ConnectionString string
}

type LoggingConfig

type LoggingConfig struct {
	Level               string
	EnableReportCaller  bool
	EnableTextFormatter bool
}

Jump to

Keyboard shortcuts

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