ingest

package
v0.0.0-...-a1a73b8 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ingester

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

func New

func New(c *config.Applications, client storage.Client) *Ingester

func (*Ingester) Connect

func (i *Ingester) Connect() error

Connect initiates the connection to the NATS server. It's separate from Run() so connection errors can be handled easily while still running the ingester in a goroutine.

func (*Ingester) EventsFailed

func (i *Ingester) EventsFailed() int64

Returns the total number of failed events by the ingester client

func (*Ingester) EventsProcessed

func (i *Ingester) EventsProcessed() int64

Returns the total number of events processed by the ingester client

func (*Ingester) EventsSuccessful

func (i *Ingester) EventsSuccessful() int64

Returns the total number of successful events by the ingester client

func (*Ingester) GetEventStats

func (i *Ingester) GetEventStats() (int64, int64, int64)

GetEventStats returns the statistics of the ingested events

func (*Ingester) IngestMessage

func (i *Ingester) IngestMessage(msg []byte)

Sends a message through the ingestion "pipeline" (aka our events channel)

func (*Ingester) QueueLen

func (i *Ingester) QueueLen() int

Returns the total number of event messages in the ingester client queue

func (*Ingester) ResetStats

func (i *Ingester) ResetStats()

ResetStats will set all event stats back to its initial state, zero.

func (*Ingester) Run

func (i *Ingester) Run()

Jump to

Keyboard shortcuts

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