es

package
v0.0.0-...-422a64b Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CSVWriter

type CSVWriter struct {
	// contains filtered or unexported fields
}

func (*CSVWriter) Close

func (c *CSVWriter) Close() error

func (*CSVWriter) Write

func (c *CSVWriter) Write(ctx context.Context, b json.RawMessage) error

type Client

type Client interface {
	Dump(ctx context.Context, receive chan<- json.RawMessage) error
}

type Config

type Config struct {
	Query      string        `json:"query"`
	Filename   string        `json:"filename"`
	EsServer   []string      `json:"es_server"`
	EsVersion  string        `json:"es_version"`
	Auth       string        `json:"auth"`
	Index      []string      `json:"index"`
	MatchAll   []string      `json:"match_all"`
	Fields     []string      `json:"fields"`
	Sort       []string      `json:"sort"`
	Scroll     time.Duration `json:"scroll"`
	RawQuery   string        `json:"raw_query"`
	Debug      bool          `json:"debug"`
	MaxSize    int           `json:"max_size"`
	RangeValue []string      `json:"range_value"`
	RangeField string        `json:"range_field"`
	IgnoreErr  bool          `json:"ignore_err"`
}

type Writer

type Writer interface {
	io.Closer
	Write(ctx context.Context, b json.RawMessage) error
}

func NewCSVWriter

func NewCSVWriter(w io.Writer, fields []string) Writer

Jump to

Keyboard shortcuts

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