event

package
v0.0.0-...-d4303dc Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddTo

func AddTo(ctx *gin.Context, disableDataloaderCaching bool, notif *notifications.NotificationHandlers, queries *db.Queries, taskClient *task.Client, neynarAPI *farcaster.NeynarAPI)

Register specific event handlers

func Dispatch

func Dispatch(ctx context.Context, evt db.Event) error

func DispatchCaptioned

func DispatchCaptioned(ctx context.Context, evt db.Event, caption *string) (*db.FeedEvent, error)

func DispatchGroup

func DispatchGroup(ctx context.Context, groupID string, action persist.Action, caption *string) (*db.FeedEvent, error)

DispatchGroup flushes the event group immediately to its registered handlers.

func DispatchMany

func DispatchMany(ctx context.Context, evts []db.Event, editID *string) error

func For

func For(ctx context.Context) *eventSender

func PushEvent

func PushEvent(ctx context.Context, evt db.Event)

Types

This section is empty.

Jump to

Keyboard shortcuts

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