nomadservermembers

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: 10 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:"addr"`
	Port        *uint16 `json:"port"`
	Status      *string `json:"status"`
	Leader      string  `json:"leader"`
	ProtocolCur *uint8  `json:"protocol"`
	Build       string  `json:"build"`
	Datacenter  string  `json:"datacenter"`
	Region      string  `json:"region"`
}

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"`
	Environment []string            `json:"environment"`
}

Jump to

Keyboard shortcuts

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