Documentation
¶
Index ¶
- Constants
- type NoteEventBus
- func (e *NoteEventBus) NoteDeleted(ctx context.Context, note *model.Note, reason eventmodel.NoteDeleteReason) error
- func (e *NoteEventBus) NoteLiked(ctx context.Context, noteId, userId, ownerId int64, isLiked bool) error
- func (e *NoteEventBus) NotePublished(ctx context.Context, note *model.Note) error
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) NotePublished ¶
笔记发布
Click to show internal directories.
Click to hide internal directories.