types

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: MPL-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusFailure int = 0
	StatusOk          = 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiResponse

type ApiResponse struct {
	StatusCode int    `json:"ret"`
	Msg        string `json:"msg"`
}

type NodeModal

type NodeModal struct {
	Id                int64   `json:"id"`
	Name              string  `json:"name"`
	Type              bool    `json:"type"`
	Server            string  `json:"server"`
	Info              string  `json:"info"`
	Status            string  `json:"status"`
	Sort              int     `json:"sort"`
	TrafficRate       float64 `json:"traffic_rate"`
	Class             int64   `json:"node_class"`
	SpeedLimit        int64   `json:"node_speedlimit"`
	Connector         int64   `json:"node_connector"`
	Bandwidth         int64   `json:"node_bandwidth"`
	BandwidthLimit    int64   `json:"node_bandwidth_limit"`
	BandwidthResetDay int     `json:"bandwidthlimit_resetday"`
	Heartbeat         int     `json:"node_heartbeat"`
	IP                string  `json:"node_ip"`
	Group             int64   `json:"node_group"`
	MuType            int     `json:"mu_only"`
	Online            int     `json:"online"`
	GFWBlock          int     `json:"gfw_block"`

	// String stored JSON
	CustomConfig string `json:"custom_config"`
}

type ReadNodeInfoResponse

type ReadNodeInfoResponse struct {
	ApiResponse
	Node NodeModal `json:"node"`
}

Jump to

Keyboard shortcuts

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