config

package
v0.0.0-...-ef63bee Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LogOpts = zap.Options{
		Development: true,
		TimeEncoder: zapcore.ISO8601TimeEncoder,
		ZapOpts:     []zaplog.Option{zaplog.AddCaller()},
	}
)

Functions

func Set

func Set(p *CommandParam)

Types

type CommandParam

type CommandParam struct {
	// 名称
	Name string
	// 地域
	Region string
	// 云环境
	Area string
	// master url
	MasterURL string
	// bootstrap token
	BootstrapToken string
	// 心跳周期
	KeepAliveSecond int
	// 超时时间
	TimeOut int
}

命令行参数选项

func Pread

func Pread() *CommandParam

func (*CommandParam) Required

func (cp *CommandParam) Required() error

Jump to

Keyboard shortcuts

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