conf

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	WalletRpcUrl string       `json:"walletRpcUrl"`
	Logs         LogsConfig   `json:"logs"`
	Data         DataConfig   `json:"data"`
	Server       ServerConfig `json:"server"`
	Gpu          bool         `json:"gpu"`
}

func GetConfig

func GetConfig() *Config

type DataConfig

type DataConfig struct {
	DataPath string `json:"dataPath"`
}

type LogsConfig

type LogsConfig struct {
	LogPath     string `json:"logPath"`
	Level       string `json:"level"`
	MaxSize     int64  `json:"maxSize"`
	BackupCount int64  `json:"backupCount"`
}

type ServerConfig added in v0.1.2

type ServerConfig struct {
	IP   string `json:"IP"`
	Port string `json:"Port"`
}

Jump to

Keyboard shortcuts

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