hub

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHub

func NewHub(addr string)

Types

type Error

type Error struct {
	Error string `json:"error"`
}

type Errors added in v0.5.0

type Errors struct {
	Errors map[string]string `json:"errors"`
}

type GetLogs added in v0.5.0

type GetLogs struct {
	Level string `json:"level"`
}

type GetProxysResponse added in v0.5.0

type GetProxysResponse struct {
	Proxys map[string]interface{} `json:"proxys"`
}

type GetRulesResponse added in v0.5.0

type GetRulesResponse struct {
	Rules []Rule `json:"rules"`
}

type Log

type Log struct {
	Type    string `json:"type"`
	Payload string `json:"payload"`
}

type Rule added in v0.5.0

type Rule struct {
	Name    string `json:"name"`
	Payload string `json:"type"`
}

type SampleProxy added in v0.5.0

type SampleProxy struct {
	Type string `json:"type"`
}

type Selector added in v0.5.0

type Selector struct {
	Type string   `json:"type"`
	Now  string   `json:"now"`
	All  []string `json:"all"`
}

type Traffic

type Traffic struct {
	Up   int64 `json:"up"`
	Down int64 `json:"down"`
}

type URLTest added in v0.5.0

type URLTest struct {
	Type string `json:"type"`
	Now  string `json:"now"`
}

type UpdateProxyRequest added in v0.5.0

type UpdateProxyRequest struct {
	Name string `json:"name"`
}

Jump to

Keyboard shortcuts

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