config

package
v0.0.0-...-3051362 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Conf holds project main configuration

View Source
var Credentials *configuration.Config

Credentials holds all credentials

Functions

func LoadConfiguration

func LoadConfiguration(fileName string)

LoadConfiguration loads main configuration given the fileName

func LoadCredentials

func LoadCredentials(fileName string)

LoadCredentials loads credentials configuration

Types

type Config

type Config struct {
	LogConfig LogConfig `json:"log"`
}

Config holds project main configuration

type LogConfig

type LogConfig struct {
	FilePath string `json:"file_path"`
	Level    string `json:"level"`
	MaxAge   int    `json:"max_age"` // It's express in days. How many days we keep the logs
}

LogConfig represents main configuration for logging

Jump to

Keyboard shortcuts

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