config

package
v0.0.0-...-dab1d25 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	APP_ENV     = "development"
	APP_VERSION = "0.0.1-alpha"
)

use -ldflags flag to change value of these variables

example: -ldflags="-X github.com/binarstrike/magic-url/config.APP_VERSION=1.0.4-beta"

Functions

This section is empty.

Types

type Config

type Config struct {
	App      appConfig      `mapstructure:"app"`
	Database databaseConfig `mapstructure:"database"`
	JWT      jwtConfig      `mapstructure:"jwt"`
	Redis    redisConfig    `mapstructure:"redis"`
	Consts   consts
}

func InitConfig

func InitConfig(test ...bool) (*Config, error)

Jump to

Keyboard shortcuts

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