userevent

package
v0.0.0-...-b3f0c1d Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Event

type Event string
const (
	UserCreated Event = "user.event.created"
	UserUpdated Event = "user.event.updated"
	UserDeleted Event = "user.event.deleted"
)

type Queue

type Queue string
var QueuePattern Queue = "user.*"

type UserEvent

type UserEvent struct {
	// contains filtered or unexported fields
}

func New

func New(pubSub pubsub.PubSub) *UserEvent

func (UserEvent) Created

func (e UserEvent) Created(ctx context.Context, u entity.User) error

func (UserEvent) Deleted

func (e UserEvent) Deleted(ctx context.Context, u entity.User) error

func (UserEvent) Updated

func (e UserEvent) Updated(ctx context.Context, id uint) error

Jump to

Keyboard shortcuts

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