config

package
v0.0.0-...-6375eca Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Database

func Database(config *Config) *database.Config

func JWT

func JWT(config *Config) *jwt.Config

func LoadConfig

func LoadConfig()

func RegisterProviders

func RegisterProviders(container *dig.Container) error

func Server

func Server(config *Config) *server.Config

func ServicesRandom

func ServicesRandom(config *Config) *random.Config

Types

type Config

type Config struct {
	Server   *server.Config   `mapstructure:"server"`
	JWT      *jwt.Config      `mapstructure:"jwt"`
	Database *database.Config `mapstructure:"database"`
	Services *ConfigServices  `mapstructure:"services"`
}

func Get

func Get() *Config

type ConfigServices

type ConfigServices struct {
	Random *random.Config `mapstructure:"random"`
}

Jump to

Keyboard shortcuts

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