discovery

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(config map[string]interface{}) (backend.Backend, error)

New discovery backend

Types

type InstanceList

type InstanceList struct {
	Instances       []naming.Instance `json:"instances"`
	LatestTimestamp int64             `json:"latest_timestamp"`
}

InstanceList discovery instance list

type InstanceMetadata

type InstanceMetadata struct {
	Provider interface{} `json:"provider"`
}

InstanceMetadata discovery instance metadata

type NodeStatus

type NodeStatus int

NodeStatus Status of instance

const (
	// NodeStatusUP Ready to receive register
	NodeStatusUP NodeStatus = iota
	// NodeStatusLost lost with each other
	NodeStatusLost
)

type ServerNode

type ServerNode struct {
	Addr   string     `json:"addr"`
	Zone   string     `json:"zone"`
	Status NodeStatus `json:"status"`
}

ServerNode backend servier node status

Jump to

Keyboard shortcuts

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