check

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: 8 Imported by: 0

Documentation

Index

Constants

View Source
const TopicCheckEvent = "check_events"

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckEvent

type CheckEvent struct {
	PostId  uint
	Uid     int64
	Title   string
	Content string
	PlateID int64
}

type CheckEventConsumer

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

func NewCheckEventConsumer

func NewCheckEventConsumer(
	checkRepo repository.CheckRepository,
	client sarama.Client,
	l *zap.Logger,
) *CheckEventConsumer

func (*CheckEventConsumer) Start

func (i *CheckEventConsumer) Start(ctx context.Context) error

type Producer

type Producer interface {
	ProduceCheckEvent(evt CheckEvent) error
}

func NewSaramaCheckProducer

func NewSaramaCheckProducer(producer sarama.SyncProducer) Producer

type SaramaCheckProducer

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

func (*SaramaCheckProducer) ProduceCheckEvent

func (s *SaramaCheckProducer) ProduceCheckEvent(evt CheckEvent) error

Jump to

Keyboard shortcuts

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