config

package
v0.0.0-...-d4ce131 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultConfig constant
	DefaultConfig string = "config"
)

Variables

View Source
var AppVersion string

AppVersion variable

Ver variable

Functions

func GetByteConf

func GetByteConf(configPath string) []byte

GetByteConf function

func GetConf

func GetConf(byteConfig []byte, nodeConfig interface{})

GetConf function

func GetConfigDir

func GetConfigDir() string

GetConfigDir function

func GetProcessDir

func GetProcessDir() string

GetProcessDir function

func GetProcessPath

func GetProcessPath() string

GetProcessPath function

func LoadConfig

func LoadConfig(configPath string)

LoadConfig function

func StartLogger

func StartLogger(Log logger.LogConfig)

StartLogger function

func Version

func Version(major, minor, build, revision interface{})

Version function

func WritePidFile

func WritePidFile(pidFile string) error

WritePidFile Write a pid file, but first make sure it doesn't exist with a running pid.

Types

type Config

type Config struct {
	ConfigPath string
	ByteConfig []byte
}

Config struct

var Properties *Config

Properties variable

func GetConfig

func GetConfig() *Config

GetConfig function

Jump to

Keyboard shortcuts

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