Documentation ¶
Index ¶
- type Ingester
- func (i *Ingester) Connect() error
- func (i *Ingester) EventsFailed() int64
- func (i *Ingester) EventsProcessed() int64
- func (i *Ingester) EventsSuccessful() int64
- func (i *Ingester) GetEventStats() (int64, int64, int64)
- func (i *Ingester) IngestMessage(msg []byte)
- func (i *Ingester) QueueLen() int
- func (i *Ingester) ResetStats()
- func (i *Ingester) Run()
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 (*Ingester) Connect ¶
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 ¶
Returns the total number of failed events by the ingester client
func (*Ingester) EventsProcessed ¶
Returns the total number of events processed by the ingester client
func (*Ingester) EventsSuccessful ¶
Returns the total number of successful events by the ingester client
func (*Ingester) GetEventStats ¶
GetEventStats returns the statistics of the ingested events
func (*Ingester) IngestMessage ¶
Sends a message through the ingestion "pipeline" (aka our events channel)
func (*Ingester) ResetStats ¶
func (i *Ingester) ResetStats()
ResetStats will set all event stats back to its initial state, zero.
Click to show internal directories.
Click to hide internal directories.