common

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2022 License: MulanPSL-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Build   string
	Version string
)

Functions

This section is empty.

Types

type Agent

type Agent struct {
	AgentPort         int    `mapstructure:"agent_port"`
	KeenTuneHome      string `mapstructure:"keentune_home"`
	KeenTuneWorkspace string `mapstructure:"keentune_workspace"`
	OriginalConf      string `mapstructure:"original_conf"`
}

type Config

type Config struct {
	Agent Agent `mapstructure:"agent"`
	Log   Log   `mapstructure:"log"`
}

func NewConfig

func NewConfig() *Config

type Log

type Log struct {
	ConsoleLevel       string `mapstructure:"console_level"`
	LogFileBackupCount int    `mapstructure:"logfile_backup_count"`
	LogFileInterval    int    `mapstructure:"logfile_interval"`
	LogFileLevel       string `mapstructure:"logfile_level"`
	LogFilePath        string `mapstructure:"logfile_path"`
}

Jump to

Keyboard shortcuts

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