maps

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Maps

type Maps interface {
	// AppendRow appends row to mapFile
	MapAppend(name Name, row string)
	// Exists returns true if a map exists and is not empty
	MapExists(name Name) bool
	// Refresh refreshs maps content and returns true if a map content has changed(crated/deleted/updated)
	RefreshMaps(client api.HAProxyClient) bool
	// Clean cleans maps content
	CleanMaps()
}

func New

func New(dir string, persistentMaps []Name) (Maps, error)

type Name

type Name string

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