maps

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MapFiles

type MapFiles map[Name]*mapFile

func New

func New(path string) *MapFiles

func (MapFiles) AppendRow

func (m MapFiles) AppendRow(name Name, row string)

AppendRow appends row to mapFile

func (MapFiles) Clean

func (m MapFiles) Clean()

func (MapFiles) Exists

func (m MapFiles) Exists(name Name) bool

func (MapFiles) Refresh

func (m MapFiles) Refresh(client api.HAProxyClient) (reload bool)

type Name

type Name string
const (
	SNI         Name = "sni"
	HOST        Name = "host"
	PATH_EXACT  Name = "path-exact"
	PATH_PREFIX Name = "path-prefix"
)

type Path

type Path string

func GetPath

func GetPath(name Name) Path

Jump to

Keyboard shortcuts

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