pub

package
v0.0.0-...-769d54b Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventBusPublisher

type EventBusPublisher interface {
	PublishUserCreatedEvent(ctx context.Context, userID string, languageCodes []string, createdAt time.Time) error
	PublishUserUpdatedEvent(ctx context.Context, userID string, languageCodes []string, updatedAt time.Time) error
	PublishUserFollowedEvent(ctx context.Context, userID, followedUserID string, followedAt time.Time) error
	PublishUserUnfollowedEvent(ctx context.Context, userID, unfollowedUserID string, unfollowedAt time.Time) error
	PublishUserBlockedEvent(ctx context.Context, userID, blockedUserID string, blockedAt time.Time) error
	PublishUserUnblockedEvent(ctx context.Context, userID, unblockedUserID string, unblockedAt time.Time) error
	PublishUserBannedEvent(ctx context.Context, userID string, bannedAt time.Time) error
	PublishUserUnbannedEvent(ctx context.Context, userID string, unbannedAt time.Time) error
	PublishUserVerifiedEvent(ctx context.Context, userID string, verifiedAt time.Time) error
	PublishUserUnverifiedEvent(ctx context.Context, userID string, unverifiedAt time.Time) error
}

func NewEventBusPublisher

func NewEventBusPublisher(client eventbus.Client) EventBusPublisher

Jump to

Keyboard shortcuts

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