status

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusOK       = "ok"
	StatusNotReady = "not_ready"
	StatusOffline  = "offline"
	StatusFailing  = "failing"
)

Variables

View Source
var PlayerServers = []string{
	"https://player1.lbry.tv",
	"https://player2.lbry.tv",
	"https://player3.lbry.tv",
}

Functions

func GetStatus

func GetStatus(w http.ResponseWriter, req *http.Request)

func WhoAMI added in v0.13.0

func WhoAMI(w http.ResponseWriter, req *http.Request)

Types

type ServerItem

type ServerItem struct {
	Address string `json:"address"`
	Status  string `json:"status"`
	Error   string `json:"error,omitempty"`
}

type ServerList

type ServerList []ServerItem

Jump to

Keyboard shortcuts

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