types

package
v0.0.0-...-c1a1ff6 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetJson

func GetJson() j.API

Types

type Config

type Config struct {
	Servers []interface{} `json:"servers"`
}

type HostHTTP

type HostHTTP struct {
	Hostname string `json:"hostname"`
	Port     uint   `json:"port"`
	Path     string `json:"path"`
	Weight   uint8  `json:"weight"`
}

type HostTCPUDP

type HostTCPUDP struct {
	Hostname string `json:"hostname"`
	Port     uint   `json:"port"`
	Weight   uint8  `json:"weight"`
}

type ServerHTTPS

type ServerHTTPS struct {
	Type        string     `json:"type"`
	Hosts       []HostHTTP `json:"hosts"`
	ServerName  string     `json:"name"`
	ServerPort  uint       `json:"port"`
	Certificate string     `json:"ssl-crt"`
	Key         string     `json:"ssl-key"`
}

type ServerTCP

type ServerTCP struct {
	Type  string       `json:"type"`
	Hosts []HostTCPUDP `json:"hosts"`
	Port  uint         `json:"port"`
}

type ServerUDP

type ServerUDP struct {
	Type  string       `json:"type"`
	Hosts []HostTCPUDP `json:"hosts"`
	Port  uint         `json:"port"`
}

Jump to

Keyboard shortcuts

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