properties

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExConfImpl

type ExConfImpl struct {
	ExName string
}

type MyConfImpl

type MyConfImpl struct {
	MyName string
	MyAge  int8
	Ex     *ExConfImpl
}
var MyConf MyConfImpl

func (*MyConfImpl) InitDefaultConfig

func (this *MyConfImpl) InitDefaultConfig(vp *viper.Viper)

type NodeConf

type NodeConf struct {
	Nodes map[string]*NodeOpt `mapstructure:"nodes"`
}
var Nodes NodeConf

func (*NodeConf) InitDefaultConfig

func (this *NodeConf) InitDefaultConfig(vp *viper.Viper)

func (*NodeConf) JsonToNodesOptHookFunc

func (*NodeConf) JsonToNodesOptHookFunc() mapstructure.DecodeHookFuncType

JsonToNodesOptHookFunc 解码json字符串的nodesOpt map

type NodeOpt

type NodeOpt struct {
	Username string
	Password string
	Host     string
	Port     int
}

Jump to

Keyboard shortcuts

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