config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 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 Config

type Config struct {
	// Database represents the database configuration.
	Database *database.Database `mapstructure:"database" yaml:"database" json:"database" toml:"database"`
	// Pac represents the pac configuration.
	Pac *pac.Pac `mapstructure:"pac" yaml:"pac" json:"pac" toml:"pac"`
	// Server represents the server configuration.
	Server *server.Server `mapstructure:"server" yaml:"server" json:"server" toml:"server"`
}

Config represents the configuration of the application

func Initialize

func Initialize() (*Config, error)

Initialize returns the configuration of the application.

func (*Config) GetDatabase

func (config *Config) GetDatabase() *database.Database

GetDatabase returns the database configuration.

func (*Config) GetPac

func (config *Config) GetPac() *pac.Pac

GetPac returns the pac configuration.

func (*Config) GetServer

func (config *Config) GetServer() *server.Server

GetServer returns the server configuration.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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