config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfig

func NewConfig() error

load configs

Types

type Address

type Address struct {
	IP   string `yaml:"IP"`
	Port string `yaml:"Port"`
}

type Config

type Config struct {
	HeartBeatTime int            `yaml:"HeartBeatTime"`
	StoragePath   string         `yaml:"StoragePath"`
	NamenodeAddr  string         `yaml:"NamenodeAddr"`
	Addr          *Address       `yaml:"Address"`
	Log           *log.LogConfig `yaml:"Log"`
}
var (
	Cfg *Config
)

Jump to

Keyboard shortcuts

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