elasticsearch

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2026 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Diagnose

func Diagnose(_ context.Context, _ base.DiagnoseContext, statement string) ([]base.Diagnostic, error)

func GetStatementRanges

func GetStatementRanges(_ context.Context, _ base.StatementRangeContext, statement string) ([]base.Range, error)

Types

type ParseResult

type ParseResult struct {
	Requests []*Request
	Errors   []*base.SyntaxError `yaml:"errors,omitempty"`
}

func ParseElasticsearchREST

func ParseElasticsearchREST(text string) (*ParseResult, error)

ParseElasticsearchREST parses the Elasticsearch REST API request.

type Request

type Request struct {
	Method      string
	URL         string
	Data        []string `yaml:"data,omitempty"`
	StartOffset int
	EndOffset   int
}

Jump to

Keyboard shortcuts

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