Documentation ¶
Index ¶
- Variables
- func GetAliasIndex(alias string) string
- func GetAliasIndexCache() map[string]string
- func GetIndexAlias(index string) string
- func GetIndexAliasCache() map[string]string
- func Indices() middleware.Middleware
- func Op() middleware.Middleware
- func RemoveFromIndexAliasCache(indexName string)
- func SetAliasIndex(alias, index string)
- func SetAliasIndexCache(data map[string]string)
- func SetIndexAlias(index, alias string)
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 ¶
GetAliasIndex get index for specific alias
func GetAliasIndexCache ¶
GetAliasIndexCache get the whole cache
func GetIndexAlias ¶
GetIndexAlias get alias for specific index
func GetIndexAliasCache ¶
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 ¶
func Op() middleware.Middleware
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 ¶
SetAliasIndexCache set the whole cache
func SetIndexAlias ¶
func SetIndexAlias(index, alias string)
SetIndexAlias set alias for specific index
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.