hub

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2018 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run added in v0.6.0

func Run()

Run initial hub

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 GetProxiesResponse added in v0.6.0

type GetProxiesResponse struct {
	Proxies map[string]interface{} `json:"proxies"`
}

type GetProxyDelayRequest added in v0.6.0

type GetProxyDelayRequest struct {
	URL     string `json:"url"`
	Timeout int16  `json:"timeout"`
}

type GetProxyDelayResponse added in v0.6.0

type GetProxyDelayResponse struct {
	Delay int16 `json:"delay"`
}

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