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

comparator

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrOutOfOrderEntry    = "out of order entry %s was received before entries: %v\n"
	ErrEntryNotReceivedWs = "websocket failed to receive entry %v within %f seconds\n"
	ErrEntryNotReceived   = "failed to receive entry %v within %f seconds\n"
	ErrDuplicateEntry     = "received a duplicate entry for ts %v\n"
	ErrUnexpectedEntry    = "received an unexpected entry with ts %v\n"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Comparator

type Comparator struct {
	// contains filtered or unexported fields
}

func NewComparator

func NewComparator(writer io.Writer, maxWait time.Duration, pruneInterval time.Duration,
	buckets int, sentChan chan time.Time, receivedChan chan time.Time, reader reader.LokiReader) *Comparator

func (*Comparator) Size

func (c *Comparator) Size() int

func (*Comparator) Stop

func (c *Comparator) Stop()

Jump to

Keyboard shortcuts

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