config

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// QPS indicates the maximum QPS to the master from this client.
	// If it's zero, the created RESTClient will use DefaultQPS: 5
	QPS float32 `json:"qps,omitempty"`

	// Maximum burst for throttle.
	// If it's zero, the created RESTClient will use DefaultBurst: 10.
	Burst int `json:"burst,omitempty"`

	// The maximum length of time to wait before giving up on a server request. A value of zero means no timeout, Default: 0.
	TimeoutSecond int `json:"timeoutSecond,omitempty"`

	// the cluster discovery cache sync enable, default is false
	ClusterCacheSyncEnable bool `json:"clusterCacheSyncEnable,omitempty"`

	// the cluster discovery cache sync interval,unit is second, default is 60
	ClusterCacheSyncInterval int `json:"clusterCacheSyncInterval,omitempty"`
}

Jump to

Keyboard shortcuts

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