common

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: Apache-2.0 Imports: 3 Imported by: 4

Documentation

Index

Constants

View Source
const (
	LogLevelEnv  = "SECRET_INIT_LOG_LEVEL"
	JSONLogEnv   = "SECRET_INIT_JSON_LOG"
	LogServerEnv = "SECRET_INIT_LOG_SERVER"
	DaemonEnv    = "SECRET_INIT_DAEMON"
	DelayEnv     = "SECRET_INIT_DELAY"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	LogLevel  string        `json:"log_level"`
	JSONLog   bool          `json:"json_log"`
	LogServer string        `json:"log_server"`
	Daemon    bool          `json:"daemon"`
	Delay     time.Duration `json:"delay"`
}

func LoadConfig

func LoadConfig() (*Config, error)

Jump to

Keyboard shortcuts

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