config

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig() error

func LoadConfigByPath

func LoadConfigByPath(p string) error

Types

type Conf

type Conf struct {
	IsDaemon      bool
	Logs          *LogsCfg
	Debug         bool
	CheckApiLocal bool
	UserKey       string
	KeyStore      string
	WebPort       int
	P2pPort       int
	IpfsApi       string
}
var Cfg *Conf

type LogsCfg

type LogsCfg struct {
	IsPrint     bool
	LogFilePath string
	LogFile     *os.File
}

Jump to

Keyboard shortcuts

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