logevents

package
v0.0.0-...-69704c5 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OECLogTopic      = "oeclog"
	LogConsumerGroup = "oeclog-consumer-group"

	HeartbeatTopic = "oeclog-subscriber-heartbeat"

	HeartbeatInterval = 5 * time.Second
	ExpiredInterval   = 6 * HeartbeatInterval
)

Variables

View Source
var KafkaMsgPool = sync.Pool{
	New: func() interface{} {
		return &KafkaMsg{}
	},
}

Functions

func NewProvider

func NewProvider(logger log.Logger) log.Subscriber

Types

type KafkaMsg

type KafkaMsg struct {
	Topic string `json:"topic"`
	Data  string `json:"data"`
}

type Subscriber

type Subscriber interface {
	Init(urls string, logdir string)
	Run()
}

func NewSubscriber

func NewSubscriber() Subscriber

Jump to

Keyboard shortcuts

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