Documentation ¶
Index ¶
- Variables
- func PrintPrettyMap(query map[string]interface{})
- type Client
- func (c *Client) Alive() bool
- func (c *Client) ClusterName() (string, error)
- func (c *Client) Export(indexName string, body string) (*searchResponse, error)
- func (c *Client) GetDsl(sql string) (dsl, index string, err error)
- func (c *Client) IndexInfo(indexNames string) (map[string]interface{}, error)
- func (c *Client) Indices() ([]interface{}, error)
- func (c *Client) Info() (map[string]interface{}, error)
- func (c *Client) ManageIndex(index string, action string) error
- func (c *Client) Mapping(indexName string) (map[string]interface{}, error)
- func (c *Client) Query(sql string) (*searchResponse, error)
- func (c *Client) QueryRows(indexName string, opts RowsOptions) (*searchResponse, error)
- func (c *Client) Search(indexName string, body string) (*searchResponse, error)
- func (c *Client) SearchWithBody(index, body string) (map[string]interface{}, error)
- func (c *Client) SetServerVersion()
- func (c *Client) Settings(indexName string) (map[string]interface{}, error)
- func (c *Client) Stats(indexName string) (map[string]interface{}, error)
- func (c *Client) Tasks() (map[string]interface{}, error)
- type Dump
- type Pagination
- type Record
- type Row
- type RowsOptions
- type Table
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultCluster = "http://localhost:9200" DefaultUser = "" DefaultPassword = "" DefaultAlias = "" )
View Source
var DisablePrettyJSON = false
Functions ¶
func PrintPrettyMap ¶
func PrintPrettyMap(query map[string]interface{})
Types ¶
type Client ¶
type Client struct { Alias string KibanaUrl string History []Record `json:"history"` // contains filtered or unexported fields }
func NewFromParams ¶
func (*Client) ClusterName ¶
func (*Client) QueryRows ¶
func (c *Client) QueryRows(indexName string, opts RowsOptions) (*searchResponse, error)
func (*Client) SearchWithBody ¶
func (*Client) SetServerVersion ¶
func (c *Client) SetServerVersion()
type Pagination ¶
type RowsOptions ¶
type Table ¶
type Table struct { Columns []string `json:"columns"` Rows []Row `json:"rows"` Pagination *Pagination `json:"pagination,omitempty"` }
Click to show internal directories.
Click to hide internal directories.