config

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	LogConfiguration       *LogConfiguration `mapstructure:"logs"`
	OutputFilePath         string            `mapstructure:"output_path"`
	OutputTemplateFilePath string            `mapstructure:"output_template_path"`
	RepositoryUrl          string            `mapstructure:"repository_url"`
	AccessToken            string            `mapstructure:"access_token"`
}

func LoadConfiguration

func LoadConfiguration(configFilePath string) (*Configuration, error)

type LogConfiguration

type LogConfiguration struct {
	LogFilePath string          `mapstructure:"log_path"`
	LogLevel    logger.LogLevel `mapstructure:"log_level"`
	LogFormat   string          `mapstructure:"log_format"`
	NoColor     bool            `mapstructure:"no_color"`
}

Jump to

Keyboard shortcuts

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