builder

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MentionNotificationBuilder

type MentionNotificationBuilder = func(post types.Post, mention poststypes.TextTag) types.NotificationData

type MessagesBuilder

type MessagesBuilder = func(recipient types.NotificationRecipient, data types.NotificationData) (types.NotificationMessage, error)

MessagesBuilder represents a NotificationMessage builder

type NotificationsBuilder

type NotificationsBuilder interface {
	Posts() PostsNotificationsBuilder
	Reactions() ReactionsNotificationsBuilder
	Relationships() RelationshipsNotificationsBuilder
}

NotificationsBuilder contains all the notifications builders

type NotificationsBuilderCreator

type NotificationsBuilderCreator func(context notificationscontext.Context) NotificationsBuilder

type PostNotificationBuilder

type PostNotificationBuilder = func(originalPost types.Post, post types.Post) types.NotificationData

type PostsNotificationsBuilder

type PostsNotificationsBuilder interface {
	Comment() PostNotificationBuilder
	Reply() PostNotificationBuilder
	Repost() PostNotificationBuilder
	Quote() PostNotificationBuilder
	Mention() MentionNotificationBuilder
}

PostsNotificationsBuilder contains all the notifications builders for the posts module

type ReactionNotificationBuilder

type ReactionNotificationBuilder = func(post types.Post, reaction types.Reaction) types.NotificationData

type ReactionsNotificationsBuilder

type ReactionsNotificationsBuilder interface {
	Reaction() ReactionNotificationBuilder
}

ReactionsNotificationsBuilder contains all the notifications builders for the reactions module

type RelationshipNotificationBuilder

type RelationshipNotificationBuilder = func(relationship types.Relationship) types.NotificationData

type RelationshipsNotificationsBuilder

type RelationshipsNotificationsBuilder interface {
	Relationship() RelationshipNotificationBuilder
}

RelationshipsNotificationsBuilder contains all the notifications builders for the relationships module

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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