event

package
v0.31.1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(
	ctx context.Context,
	conn repository.Querier,
	event *eventv1.Event,
	tenantId uint32,
) error

func DeleteById

func DeleteById(ctx context.Context, conn repository.Querier, id int) (int, error)

deletes an entry from the database, returns number of rows deleted.

func LoadAll

func LoadAll(ctx context.Context, conn repository.Querier, tenantId *uint32) (
	[]*eventv1.Event, error,
)

func LoadById

func LoadById(ctx context.Context, conn repository.Querier, id int) (
	*eventv1.Event, error,
)

func LoadByKey

func LoadByKey(ctx context.Context, conn repository.Querier, key string) (
	*eventv1.Event, error,
)

func UpdateEvent added in v0.23.0

func UpdateEvent(
	ctx context.Context,
	conn repository.Querier,
	id int,
	req *eventv1.UpdateEventRequest,
) error

updates selected event attributes

func UpdateReplayInfo added in v0.14.2

func UpdateReplayInfo(
	ctx context.Context,
	conn repository.Querier,
	id int,
	replayInfo *eventv1.ReplayInfo,
) error

updates the ReplayInfo in the database for an event.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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