tasks

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2025 License: AGPL-3.0 Imports: 19 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NotifyAboutDeletedPost added in v0.17.0

func NotifyAboutDeletedPost(post *entity.Post, deleteCommentAdded bool) worker.Task

NotifyAboutDeletedPost sends a notification (web and email) to subscribers of the post that has been deleted

func NotifyAboutNewComment

func NotifyAboutNewComment(comment *entity.Comment, post *entity.Post) worker.Task

NotifyAboutNewComment sends a notification (web and email) to subscribers

func NotifyAboutNewPost added in v0.15.0

func NotifyAboutNewPost(post *entity.Post) worker.Task

NotifyAboutNewPost sends a notification (web and email) to subscribers

func NotifyAboutStatusChange

func NotifyAboutStatusChange(post *entity.Post, prevStatus enum.PostStatus) worker.Task

NotifyAboutStatusChange sends a notification (web and email) to subscribers

func NotifyAboutUpdatedComment added in v0.25.0

func NotifyAboutUpdatedComment(post *entity.Post, comment *entity.Comment) worker.Task

func NotifyAboutUpdatedPost added in v0.28.0

func NotifyAboutUpdatedPost(post *entity.Post) worker.Task

NotifyAboutUpdatedPost sends notifications about mentions in an updated post

func SendChangeEmailConfirmation

func SendChangeEmailConfirmation(action *actions.ChangeUserEmail) worker.Task

SendChangeEmailConfirmation is used to send the change email confirmation email to requestor

func SendInvites added in v0.12.0

func SendInvites(subject, message string, invitations []*actions.UserInvitation) worker.Task

SendInvites sends one email to each invited recipient

func SendSignInEmail

func SendSignInEmail(email, verificationCode string) worker.Task

SendSignInEmail is used to send the sign in email to requestor

func SendSignUpEmail

func SendSignUpEmail(data SignUpEmailData, baseURL string) worker.Task

SendSignUpEmail is used to send the sign up email to requestor

func UserListAddOrRemoveUser added in v0.23.0

func UserListAddOrRemoveUser(userID int, role enum.Role) worker.Task

func UserListCreateCompany added in v0.23.0

func UserListCreateCompany(tenant entity.Tenant, user entity.User) worker.Task

func UserListUpdateCompany added in v0.23.0

func UserListUpdateCompany(action *dto.UserListUpdateCompany) worker.Task

func UserListUpdateUser added in v0.23.0

func UserListUpdateUser(id int, name string, email string) worker.Task

Types

type SignUpEmailData added in v0.31.0

type SignUpEmailData interface {
	GetEmail() string
	GetName() string
	GetVerificationKey() string
}

SignUpEmailData contains the data needed to send a signup email

Jump to

Keyboard shortcuts

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