common

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2020 License: LGPL-3.0 Imports: 0 Imported by: 2

Documentation

Index

Constants

View Source
const (
	CommandLoad    string = "load"
	CommandUpdate  string = "update"
	CommandConnect string = "connect"
)
View Source
const (
	StatusConnecting   string = "connecting"
	StatusConnected    string = "connected"
	StatusDisconnected string = "disconnected"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectionRequest

type ConnectionRequest struct {
	Request
	Data Server `json:"data"`
}

type ConnectionResponse

type ConnectionResponse struct {
	Response
	RequestData Server `json:"request"`
}

type LoadResponse

type LoadResponse struct {
	Response
	Data []Server
}

type ProxyServer

type ProxyServer struct {
	Server
	Fingerprint string `json:"fingerprint"`
	ProxyPort   int    `json:"proxyPort"`
}

type Request

type Request struct {
	Command string `json:"command"`
	Session int    `json:"session"`
}

type Response

type Response struct {
	Request
	Result bool   `json:"result"`
	Error  string `json:"error"`
}

type Server

type Server struct {
	Uuid        string `json:"uuid"`
	Host        string `json:"host"`
	Port        int    `json:"port"`
	Description string `json:"description"`
}

Jump to

Keyboard shortcuts

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