route

package
v1.9.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Route

type Route struct {
	Name   string `json:"name,omitempty"`
	Ip     string `json:"ip"`
	Proto  string `json:"proto"`
	Port   string `json:"port,omitempty"`
	Target string `json:"target"`
	Action string `json:"action,omitempty"`
}

func (Route) Domain

func (r Route) Domain() string

type Table

type Table struct {
	Name   string  `json:"name"`
	Routes []Route `json:"routes"`
}

func (*Table) Add

func (t *Table) Add(route Route)

Jump to

Keyboard shortcuts

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