es

package
v0.0.0-...-8e1a2f1 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewES

func NewES() logs.Logger

NewES returns a LoggerInterface

func SetIndexNaming

func SetIndexNaming(i IndexNaming)

SetIndexNaming will register global IndexNaming

Types

type IndexNaming

type IndexNaming interface {
	IndexName(lm *logs.LogMsg) string
}

IndexNaming generate the index name

type LogDocument

type LogDocument struct {
	Timestamp string `json:"timestamp"`
	Msg       string `json:"msg"`
}

Jump to

Keyboard shortcuts

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