elasticsearch

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2019 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package elasticsearch provides basic commands to interact with Elasticsearch

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Host  string
	Port  int
	Index string
}

func (*Client) EventCount

func (c *Client) EventCount() (int, error)

EventCount returns the total amount of events persisted to Elasticsearch

func (*Client) Persist

func (c *Client) Persist(requestID string, application string, name string, data map[string]interface{}) error

Persist saves incoming events to Elasticsearch

func (*Client) URL

func (c *Client) URL() string

URL returns the full URL to the elasticsearch host, port and index

type ElasticsearchClient

type ElasticsearchClient interface {
	EventCount() (int, error)
}

Jump to

Keyboard shortcuts

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