upsync

package
v0.0.0-...-bd4735d Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrKeyParseError = errors.New("key format error")
View Source
var ErrValueParseError = errors.New("value format error")

Functions

func Transform

func Transform(key string, response *clientv3.GetResponse) *v2store.Event

Types

type UpstreamParams

type UpstreamParams struct {
	Weight      *int64 `json:"weight,omitempty"`
	MaxFails    *int64 `json:"max_fails,omitempty"`
	FailTimeout *int64 `json:"fail_timeout,omitempty"`

	// 上线状态 0,1
	Down *int8 `json:"down,omitempty"`

	// 后备状态 0,1
	Backup *int8 `json:"backup,omitempty"`
}

Jump to

Keyboard shortcuts

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