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
Click to show internal directories.
Click to hide internal directories.