Help us shape the future of Go! Take the 2026 Go Developer Survey

client

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: GPL-3.0 Imports: 8 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 {
	Client http.Client
	URL    string
}

func NewClient

func NewClient(url string, rt http.RoundTripper) *Client

func (*Client) Health

func (c *Client) Health() (r *es.HealthResponse, err error)

func (*Client) NodeStats

func (c *Client) NodeStats() (r *es.ClusterStats, err error)

func (*Client) SearchMessages

func (c *Client) SearchMessages(index string, query string, messageKey string) (total uint, messages []string, err error)

nolint: funlen

func (*Client) Snapshot added in v0.5.0

func (c *Client) Snapshot(repository string, snapshot string) (*es.SnapshotResponse, error)

Jump to

Keyboard shortcuts

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