consulmembers

package module
v0.0.0-...-6d938a6 Latest Latest
Warning

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

Go to latest
Published: May 30, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve(w http.ResponseWriter, r *http.Request)

Types

type AgentMember

type AgentMember struct {
	Name        string `json:"name"`
	Addr        string `json:"address"`
	Port        uint16 `json:"port"`
	Status      string `json:"status"`
	Type        string `json:"type"`
	ProtocolCur string `json:"protocol"`
	Build       string `json:"build"`
	Datacenter  string `json:"dc"`
	Segment     string `json:"segment"`
}

type ByMemberNameAndSegment

type ByMemberNameAndSegment []*consul.AgentMember

func (ByMemberNameAndSegment) Len

func (m ByMemberNameAndSegment) Len() int

func (ByMemberNameAndSegment) Less

func (m ByMemberNameAndSegment) Less(i, j int) bool

func (ByMemberNameAndSegment) Swap

func (m ByMemberNameAndSegment) Swap(i, j int)

type RequestBody

type RequestBody struct {
	Token    string `json:"token"`
	Endpoint string `json:"endpoint"`
}

type Response

type Response struct {
	Payload []AgentMember       `json:"payload"`
	Headers map[string][]string `json:"headers"`
}

Jump to

Keyboard shortcuts

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