Documentation ¶
Index ¶
- func NewCommentListener(optionService service.OptionService, postService service.PostService, ...)
- func NewLogEventListener(db *gorm.DB, bus event.Bus)
- func NewPostUpdateListener(bus event.Bus, categoryService service.CategoryService, ...)
- func NewStartListener(db *gorm.DB, optionService service.OptionService, bus event.Bus)
- func NewTemplateConfigListener(bus event.Bus, template *template.Template, themeService service.ThemeService, ...)
- type CommentListener
- type LogEventListener
- type PostUpdateListener
- type StartListener
- type TemplateConfigListener
- func (t *TemplateConfigListener) HandleOptionUpdateEvent(ctx context.Context, optionUpdateEvent event.Event) error
- func (t *TemplateConfigListener) HandleStartEvent(ctx context.Context, startEvent event.Event) error
- func (t *TemplateConfigListener) HandleThemeFileUpdateEvent(ctx context.Context, themeFileUpdateEvent event.Event) error
- func (t *TemplateConfigListener) HandleThemeUpdateEvent(ctx context.Context, themeUpdateEvent event.Event) error
- func (t *TemplateConfigListener) HandleUserUpdateEvent(ctx context.Context, userUpdateEvent event.Event) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCommentListener ¶
func NewCommentListener( optionService service.OptionService, postService service.PostService, journalService service.JournalService, sheetService service.SheetService, bus event.Bus, postAssembler assembler.PostAssembler, themeService service.ThemeService, emailService service.EmailService, userService service.UserService, template *template.Template, baseCommentService service.BaseCommentService, )
func NewPostUpdateListener ¶
func NewPostUpdateListener(bus event.Bus, categoryService service.CategoryService, postCategoryService service.PostCategoryService, postService service.PostService, )
func NewStartListener ¶
Types ¶
type CommentListener ¶
type CommentListener struct { OptionService service.OptionService PostService service.PostService PostAssembler assembler.PostAssembler JournalService service.JournalService SheetService service.SheetService ThemeService service.ThemeService EmailService service.EmailService UserService service.UserService BaseCommentService service.BaseCommentService Template *template.Template }
func (*CommentListener) HandleCommentNew ¶
func (*CommentListener) HandleCommentReply ¶
type LogEventListener ¶
type LogEventListener struct {
// contains filtered or unexported fields
}
func (*LogEventListener) HandleEvent ¶
type PostUpdateListener ¶
type PostUpdateListener struct { CategoryService service.CategoryService PostCategoryService service.PostCategoryService PostService service.PostService }
func (*PostUpdateListener) HandlePostUpdateEvent ¶
type StartListener ¶
type StartListener struct {
// contains filtered or unexported fields
}
func (*StartListener) HandleEvent ¶
type TemplateConfigListener ¶
type TemplateConfigListener struct { Template *template.Template ThemeService service.ThemeService OptionService service.ClientOptionService UserService service.UserService Logger *zap.Logger Config *config.Config Router *gin.Engine }
func (*TemplateConfigListener) HandleOptionUpdateEvent ¶
func (*TemplateConfigListener) HandleStartEvent ¶
func (*TemplateConfigListener) HandleThemeFileUpdateEvent ¶
func (*TemplateConfigListener) HandleThemeUpdateEvent ¶
func (*TemplateConfigListener) HandleUserUpdateEvent ¶
Click to show internal directories.
Click to hide internal directories.