kafka

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCore

func NewCore() zapcore.Core

func RegisterSink

func RegisterSink()

kafka://${token}?sercret=${sercret}

Types

type LogKafka

type LogKafka struct {
	Producer sarama.SyncProducer
	Topic    string
}

func (*LogKafka) Close

func (lk *LogKafka) Close() error

func (*LogKafka) Sync

func (lk *LogKafka) Sync() error

func (*LogKafka) Write

func (lk *LogKafka) Write(b []byte) (n int, err error)

Jump to

Keyboard shortcuts

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