data

package
Version: v0.0.0-...-e9c8eca Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Proxy

type Proxy struct {
	Name        string   `json:"name";yaml:"name"`
	Port        string   `json:"port";yaml:"port"`
	To          []string `json:"to";yaml:"to"`
	Loadbalacer string   `json:"loadbalacer";yaml:"loadbalacer"`
	Static      string   `json:"static,omitempty";yaml:"static,omitempty"`
}

Proxy is data format to parse the configuration file

type Router

type Router struct {
	Port string `json:"port";yaml:"port"`
	Case []struct {
		Service     string   `json:"service,omitempty";yaml:"service"`
		Loadbalacer string   `json:"loadbalacer";yaml:"loadbalacer"`
		Upstream    []string `json:"upstream";yaml:"upstream"`
		Static      []string `json:"static,omitempty";yaml:"static,omitempty"`
	} `json:"case";yaml:"case"`
}

Router is data format to parse the configuration file

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL