config

package
v0.0.0-...-a3a5c94 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2021 License: MIT 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

type Endpoint

type Endpoint struct {
	Name   string `json:"name"`
	URL    string `json:"url"`
	Weight int    `json:"weight"`
	Mode   int    `json:"-"` //0 means URL change, 1 means weight change, 2 means full change
}

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