kibana

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	URL        string
	AuthHeader string
	Index      string
}

func New

func New(url, authHeader, index string) *Client

func (*Client) ImplementsAdvancedFilters added in v0.3.0

func (client *Client) ImplementsAdvancedFilters() bool

func (*Client) ListIndices

func (client *Client) ListIndices() ([]string, error)

func (*Client) Query

func (client *Client) Query(ctx context.Context, q common.Query) <-chan common.LogMessage

type Hit

type Hit struct {
	ID     string     `json:"_id"`
	Source JsonObject `json:"_source"`
}

type JsonList

type JsonList []interface{}

type JsonObject

type JsonObject map[string]interface{}

type QueryResult

type QueryResult struct {
	Responses []struct {
		Hits struct {
			Hits []Hit `json:"hits"`
		} `json:"hits"`
	} `json:"responses"`
}

Jump to

Keyboard shortcuts

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