utils

package
v0.0.0-...-fe055a6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// from kong to apisix
	WordMap = map[string]string{
		"round-robin":        "roundrobin",
		"consistent-hashing": "chash",
	}
)

Functions

func AppendToConfigYaml

func AppendToConfigYaml(items *[]YamlItem, filePath string) error

func ShowConfigYaml

func ShowConfigYaml(items *[]YamlItem) ([]byte, error)

Types

type YamlItem

type YamlItem struct {
	Value interface{}
	Path  []interface{}
}

Jump to

Keyboard shortcuts

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