data

package
v0.0.0-...-9894092 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2021 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

Jump to

Keyboard shortcuts

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