db

package
v0.0.0-...-0005c3c Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2025 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventStore

type EventStore interface {
	GetEvent(context.Context) (*model.Event, error)
	UpdateEvent(context.Context, *model.Event) error
}

type GuestStore

type GuestStore interface {
	CreateGuest(context.Context, *model.Guest) (uuid.UUID, error)
	UpdateGuest(context.Context, *model.Guest) error
	DeleteGuest(context.Context, uuid.UUID) error
	ListGuests(context.Context) ([]*model.Guest, error)
	GetGuestByID(context.Context, uuid.UUID) (*model.Guest, error)
}

type InvitationStore

type InvitationStore interface {
	GetInvitationByID(context.Context, uuid.UUID) (*model.Invitation, error)
	UpdateInvitation(context.Context, *model.Invitation) error
	CreateInvitation(ctx context.Context, guestIDs ...uuid.UUID) (*model.Invitation, error)
	ListInvitations(ctx context.Context) ([]*model.Invitation, error)
}

type TranslationStore

type TranslationStore interface {
	ListLanguages(context.Context) ([]string, error)
	ByLanguage(context.Context, string) (*model.Translation, error)
	CreateLanguage(context.Context, string, *model.Translation) error
	UpdateLanguages(context.Context, map[string]*model.Translation) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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