article

package
v0.0.0-...-7efebb4 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const TopicReadEvent = "article_read"

Variables

This section is empty.

Functions

This section is empty.

Types

type Producer

type Producer interface {
	ProduceReadEvent(event ReadEvent) error
}

func NewSaramaSyncProducer

func NewSaramaSyncProducer(producer sarama.SyncProducer) Producer

type ReadEvent

type ReadEvent struct {
	Aid int64
	Uid int64
}

type SaramaSyncProducer

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

func (*SaramaSyncProducer) ProduceReadEvent

func (r *SaramaSyncProducer) ProduceReadEvent(event ReadEvent) error

Jump to

Keyboard shortcuts

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