infra

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLogger

func GetLogger() *logrus.Logger

func LoadConfigFromEnv added in v0.1.1

func LoadConfigFromEnv()

Configurations are loaded from the environment variables using viper. callin this function will reLoad the config. (useful for testing) WARN: this will reload all the config.

Types

type Config added in v0.1.1

type Config struct {
	// Server
	SERVER_MODE string

	// Session
	SESSION_COOKIE_NAME     string
	JWT_SESSION_COOKIE_NAME string

	// JWT
	JWT_EDCA_PRIVATE_KEY_PATH string
	JWT_EDCA_PUBLIC_KEY_PATH  string
	JWT_EDCA_PUBLIC_KEY       string
	JWT_EDCA_PRIVATE_KEY      string
	JWT_EXPIRATION_DURATION   time.Duration
	JWT_SUBJECT               string
	JWT_ISSUER                string

	// Storage
	SQLITE_FILE_PATH string
}

func GetConfig added in v0.1.1

func GetConfig() *Config

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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