config

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

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

Go to latest
Published: Aug 11, 2019 License: LGPL-3.0 Imports: 1 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
	EtcdClusterEndpoints []string
}

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表示全变化
}

type Operation

type Operation int

Operation 实例操作类型

const (
	ADD Operation = iota
	DELETE
	UPDATE
	SYNC
)

Jump to

Keyboard shortcuts

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