config

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package config provides the application configuration management.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigurationService

type ConfigurationService struct {
	Configuration model.Configuration
}

ConfigurationService represents the service that manages the configuration of the application.

func GetConfigurationServiceInstance

func GetConfigurationServiceInstance() *ConfigurationService

GetConfigurationServiceInstance returns the only one instance of the service.

If the service doesn't exist, it is automatically created once for all.

func (*ConfigurationService) Init

func (confService *ConfigurationService) Init(filePath string) (*model.Configuration, error)

Init initializes the service using a path to the configuration file. Once done, the service is ready to return the configuration structure.

Note that the conf file content is checked, and default values are used if needed.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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