config

package
v0.0.0-...-b5756a5 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DbConnection

func DbConnection(c *Config) (*gorm.DB, error)

Types

type Config

type Config struct {
	DBHost                string
	DBPort                int
	DBUsername            string
	DBPassword            string
	DBName                string
	Port                  int
	RefreshTokenExpiresIn time.Duration
	TokenExpiresIn        time.Duration
	TokenAge              string
	TokenSecret           string
	PrivKey               string
	PubKey                string
}

func LoadConfig

func LoadConfig() (config Config, err error)

LoadConfig retrieves configuration from environment variables

Jump to

Keyboard shortcuts

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