hub

package
v0.0.0-...-0269b34 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHub

func NewHub(addr string)

Types

type Configs

type Configs struct {
	Proxys []Proxy `json:"proxys"`
	Rules  []Rule  `json:"rules"`
}

type Error

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

type GetLogs

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

type Log

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

type Proxy

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

type Rule

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

type Traffic

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

Jump to

Keyboard shortcuts

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