index

package
v4.6.3 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildAliasName

func BuildAliasName(instance string, documentType string, depth Depth) string

BuildAliasName build a elasticsearch index alias based on an instance, a document type and a depth

Types

type Depth

type Depth int

Depth ...

const (
	// Last is used for the current index (mainly for indexing)
	Last Depth = iota + 1
	// Patch is used for optimized update on old indices
	Patch
	// All is used to query all indices (mainly for search)
	All
)

func (Depth) MarshalJSON

func (s Depth) MarshalJSON() ([]byte, error)

MarshalJSON marshals the enum as a quoted json string

func (Depth) String

func (s Depth) String() string

func (*Depth) UnmarshalJSON

func (s *Depth) UnmarshalJSON(b []byte) error

UnmarshalJSON unmashals a quoted json string to the enum value

Jump to

Keyboard shortcuts

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