check

package
v0.0.0-...-1b0a6d5 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Check

type Check struct {
	ID        int64  `mapstructure:"id"`
	PostID    uint   `mapstructure:"post_id"`
	Title     string `mapstructure:"title"`
	Content   string `mapstructure:"content"`
	CreatedAt int64  `mapstructure:"created_at"`
	UpdatedAt int64  `mapstructure:"updated_at"`
	UserID    int64  `mapstructure:"author_id"`
	Status    uint8  `mapstructure:"status"`
	Remark    string `mapstructure:"remark"`
}

type CheckConsumer

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

func NewCheckConsumer

func NewCheckConsumer(client sarama.Client, l *zap.Logger, repo repository.PostRepository, checkCache cache.CheckCache) *CheckConsumer

func (*CheckConsumer) Consume

func (*CheckConsumer) Start

func (r *CheckConsumer) Start(ctx context.Context) error

type Event

type Event struct {
	Type     string                   `json:"type"`
	Database string                   `json:"database"`
	Table    string                   `json:"table"`
	Data     []map[string]interface{} `json:"data"`
}

Jump to

Keyboard shortcuts

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