search

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2018 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByAbsolute

func ByAbsolute(
	ch chan logging.LoggableMessages,
	errc chan error,
	g *Graylog,
	params *clientabs.SearchAbsoluteParams,
	auth runtime.ClientAuthInfoWriter)

ByAbsolute searches the provided Graylog using the keyword API and the provided parameters and auth. Messages are sent on the provided channel. nolint: dupl

func ByKeyword

func ByKeyword(
	ch chan logging.LoggableMessages,
	errc chan error,
	g *Graylog,
	params *clientkey.SearchKeywordParams,
	auth runtime.ClientAuthInfoWriter)

ByKeyword searches the provided Graylog using the keyword API and the provided parameters and auth. Messages are sent on the provided channel. nolint: dupl

func ByRelative

func ByRelative(
	ch chan logging.LoggableMessages,
	errc chan error,
	g *Graylog,
	params *clientrel.SearchRelativeParams,
	auth runtime.ClientAuthInfoWriter)

ByRelative searches the provided Graylog using the relative API and the provided parameters and auth. Messages are sent on the provided channel.

func ByRelativeWithPoll

func ByRelativeWithPoll(
	interval time.Duration,
	ch chan logging.LoggableMessages,
	errc chan error,
	g *Graylog,
	params *clientrel.SearchRelativeParams,
	auth runtime.ClientAuthInfoWriter)

ByRelativeWithPoll performs a relative search every `interval`.

Types

type Graylog

type Graylog struct {
	Client *client.Graylog
	Logger logging.Logger

	// For relative search follow mode.
	LastCalled time.Time
}

Graylog models required fields for dealing with the Graylog search APIs.

func (*Graylog) String

func (g *Graylog) String() string

Jump to

Keyboard shortcuts

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