classify

package
v0.0.0-...-f94be1b Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AliasIndexCache = make(map[string]string)

AliasIndexCache cache to store alias -> index map

View Source
var IndexAliasCache = make(map[string]string)

IndexAliasCache cache to store index -> alias map

Functions

func GetAliasIndex

func GetAliasIndex(alias string) string

GetAliasIndex get index for specific alias

func GetAliasIndexCache

func GetAliasIndexCache() map[string]string

GetAliasIndexCache get the whole cache

func GetIndexAlias

func GetIndexAlias(index string) string

GetIndexAlias get alias for specific index

func GetIndexAliasCache

func GetIndexAliasCache() map[string]string

GetIndexAliasCache get whole cache

func Indices

func Indices() middleware.Middleware

Indices returns a middleware that identifies the indices present in the es route.

func Op

Op returns a middleware that classifies request operation.

func RemoveFromIndexAliasCache

func RemoveFromIndexAliasCache(indexName string)

RemoveFromIndexAliasCache get the whole cache

func SetAliasIndex

func SetAliasIndex(alias, index string)

SetAliasIndex set index for specific alias

func SetAliasIndexCache

func SetAliasIndexCache(data map[string]string)

SetAliasIndexCache set the whole cache

func SetIndexAlias

func SetIndexAlias(index, alias string)

SetIndexAlias set alias for specific index

Types

This section is empty.

Jump to

Keyboard shortcuts

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