handler

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2018 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AggregationResult

type AggregationResult map[string]interface{}

type ElasticsearchHitList

type ElasticsearchHitList struct {
	Index  string                 `json:"_index"`
	Type   string                 `json:"_type"`
	Id     string                 `json:"_id"`
	Score  float64                `json:"_score"`
	Source map[string]interface{} `json:"_source"`
}

type ElasticsearchHitResult

type ElasticsearchHitResult struct {
	Total    int64                  `json:"total"`
	MaxScore float64                `json:"max_score"`
	Hits     []ElasticsearchHitList `json:"hits"`
}

type ElasticsearchResult

type ElasticsearchResult struct {
	Took         int                          `json:"took"`
	TimedOut     bool                         `json:"timed_out"`
	Shards       ElasticsearchShardResult     `json:"_shards"`
	Hits         ElasticsearchHitResult       `json:"hits"`
	Error        string                       `json:"error"`
	Status       int                          `json:"status`
	Aggregations map[string]AggregationResult `json:"aggregations"`
}

func (*ElasticsearchResult) GetAggregation

func (result *ElasticsearchResult) GetAggregation(FieldName string)

func (*ElasticsearchResult) SingleValue

func (result *ElasticsearchResult) SingleValue(FieldName string)

func (*ElasticsearchResult) WriteFile

func (result *ElasticsearchResult) WriteFile(FileName string) error

type ElasticsearchShardResult

type ElasticsearchShardResult struct {
	Total      int `json:"total"`
	Successful int `json:"successful"`
	Skipped    int `json:"skipped"`
	Failed     int `json:"failed"`
}

type Gobana

type Gobana struct {
	Connection *lra.Connection
	Endpoint   string
	Query      string
}

func NewGobana

func NewGobana(UseSSL bool, Server string, Port int, User string, Password string, ValidateSSL bool, Proxy string, ProxyIsSocks bool, Query string, Queryfile string, Toml bool, Data []string, Endpoint string) (*Gobana, error)

func (*Gobana) Execute

func (gobana *Gobana) Execute() (*ElasticsearchResult, error)

Jump to

Keyboard shortcuts

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