event

package
v0.0.0-...-28397d1 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NoteEventTopic = "note_event"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type NoteEventBus

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

笔记相关事件统一处理

func NewNoteEventBus

func NewNoteEventBus(pub *infrakfk.Publisher) *NoteEventBus

func (*NoteEventBus) NoteDeleted

func (e *NoteEventBus) NoteDeleted(ctx context.Context, note *model.Note, reason eventmodel.NoteDeleteReason) error

func (*NoteEventBus) NoteLiked

func (e *NoteEventBus) NoteLiked(ctx context.Context, noteId, userId, ownerId int64, isLiked bool) error

func (*NoteEventBus) NotePublished

func (e *NoteEventBus) NotePublished(ctx context.Context, note *model.Note) error

笔记发布

Jump to

Keyboard shortcuts

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