log

package
v0.0.0-...-a80dff1 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const TopicZapLogs = "linkme_elk_events"

Variables

This section is empty.

Functions

This section is empty.

Types

type EsLogsConsumer

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

func NewEsLogsConsumer

func NewEsLogsConsumer(client sarama.Client, rs repository.SearchRepository, l *zap.Logger) *EsLogsConsumer

func (*EsLogsConsumer) BatchHandleLogs

func (es *EsLogsConsumer) BatchHandleLogs(_ []*sarama.ConsumerMessage, events []Event) error

func (*EsLogsConsumer) Start

func (es *EsLogsConsumer) Start(ctx context.Context) error

type Event

type Event struct {
	Timestamp int64  `json:"timestamp"`
	Level     string `json:"level"`
	Message   string `json:"message"`
}

Jump to

Keyboard shortcuts

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