config

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: May 8, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Retry

type Retry struct {
	// 是否开启
	Enabled *bool `default:"true"`
	// 次数
	Counts int `default:"5"`
	// 间隔
	Backoff time.Duration `default:"5s"`
	// 时间
	Timeout time.Duration `default:"60m"`
	// contains filtered or unexported fields
}

type Runtime

type Runtime struct {
	// 是否启用默认配置
	Default *bool `default:"true"`
	// 是否显示详细信息
	Verbose bool `default:"false"`
	// 是否在出错时打印输出
	Pwe *bool `default:"true"`
	// contains filtered or unexported fields
}

func (*Runtime) Path

func (*Runtime) Path(required string, optionals ...string) (final string)

type Wrapper

type Wrapper struct {
	Retry   *Retry   `default:"{}" json:"retry,omitempty"`
	Runtime *Runtime `default:"{}" json:"runtime,omitempty"`
}

Jump to

Keyboard shortcuts

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