config

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: LGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiscoverConfig

type DiscoverConfig struct {
	Ctx            context.Context
	EtcdClientArgs *etcdutil.ClientArgs
}

DiscoverConfig discover config

type Endpoint

type Endpoint struct {
	Name   string `json:"name"`
	URL    string `json:"url"`
	Weight int    `json:"weight"`
	Mode   int    `json:"-"` //0 表示URL变化,1表示Weight变化 ,2表示全变化
}

Endpoint endpoint

type Operation

type Operation int

Operation 实例操作类型

const (
	// ADD add operation
	ADD Operation = iota
	// DELETE delete operation
	DELETE
	// UPDATE update operation
	UPDATE
	// SYNC sync operation
	SYNC
)

Jump to

Keyboard shortcuts

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