config

package
v5.2.1-release+incompa... Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2020 License: LGPL-3.0 Imports: 2 Imported by: 60

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