status

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandlerGetStatus

func HandlerGetStatus(ctx *context.Context) http.HandlerFunc

func RegisterRoutes

func RegisterRoutes(ctx *context.Context, r *mux.Router)

Types

type Bandwidth

type Bandwidth struct {
	Download int64 `json:"download"`
	Upload   int64 `json:"upload"`
}

type Handshake

type Handshake struct {
	Enable bool   `json:"enable"`
	Peers  uint64 `json:"peers"`
}

type Location

type Location struct {
	City      string  `json:"city"`
	Country   string  `json:"country"`
	Latitude  float64 `json:"latitude"`
	Longitude float64 `json:"longitude"`
}

type QOS added in v0.2.1

type QOS struct {
	MaxPeers int `json:"max_peers"`
}

type ResponseGetStatus

type ResponseGetStatus struct {
	Address                string        `json:"address"`
	Bandwidth              *Bandwidth    `json:"bandwidth"`
	Handshake              *Handshake    `json:"handshake"`
	IntervalSetSessions    time.Duration `json:"interval_set_sessions"`
	IntervalUpdateSessions time.Duration `json:"interval_update_sessions"`
	IntervalUpdateStatus   time.Duration `json:"interval_update_status"`
	Location               *Location     `json:"location"`
	Moniker                string        `json:"moniker"`
	Operator               string        `json:"operator"`
	Peers                  int           `json:"peers"`
	Price                  string        `json:"price"`
	Provider               string        `json:"provider"`
	QOS                    *QOS          `json:"qos"`
	Type                   uint64        `json:"type"`
	Version                string        `json:"version"`
}

Jump to

Keyboard shortcuts

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