logevents

package
v0.0.0-...-c763619 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	FBCLogTopic      = "fbclog"
	LogConsumerGroup = "fbclog-consumer-group"

	HeartbeatTopic = "fbclog-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