kvdb

package
v0.0.0-...-ee354c3 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2024 License: GPL-3.0 Imports: 14 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 struct {
	// contains filtered or unexported fields
}

func NewEventStore

func NewEventStore(db *bolt.DB) (*EventStore, error)

func (*EventStore) GetEvent

func (e *EventStore) GetEvent(ctx context.Context) (*model.Event, error)

func (*EventStore) UpdateEvent

func (e *EventStore) UpdateEvent(ctx context.Context, in *model.Event) error

type GuestStore

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

func NewGuestStore

func NewGuestStore(db *bolt.DB) (*GuestStore, error)

func (*GuestStore) CreateGuest

func (g *GuestStore) CreateGuest(ctx context.Context, guest *model.Guest) (uuid.UUID, error)

func (*GuestStore) DeleteGuest

func (g *GuestStore) DeleteGuest(ctx context.Context, guestID uuid.UUID) error

func (*GuestStore) GetGuestByID

func (g *GuestStore) GetGuestByID(ctx context.Context, guestID uuid.UUID) (*model.Guest, error)

func (*GuestStore) ListGuests

func (g *GuestStore) ListGuests(ctx context.Context) ([]*model.Guest, error)

func (*GuestStore) UpdateGuest

func (g *GuestStore) UpdateGuest(ctx context.Context, guest *model.Guest) error

type InvitationStore

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

func NewInvitationStore

func NewInvitationStore(db *bolt.DB) (*InvitationStore, error)

func (*InvitationStore) CreateInvitation

func (i *InvitationStore) CreateInvitation(ctx context.Context, guestIDs ...uuid.UUID) (*model.Invitation, error)

func (*InvitationStore) GetInvitationByID

func (i *InvitationStore) GetInvitationByID(ctx context.Context, inviteID uuid.UUID) (*model.Invitation, error)

func (*InvitationStore) ListInvitations

func (i *InvitationStore) ListInvitations(ctx context.Context) ([]*model.Invitation, error)

func (*InvitationStore) UpdateInvitation

func (i *InvitationStore) UpdateInvitation(ctx context.Context, invite *model.Invitation) error

type TranslationStore

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

func NewTranslationStore

func NewTranslationStore(db *bolt.DB) (*TranslationStore, error)

func (*TranslationStore) ByLanguage

func (t *TranslationStore) ByLanguage(ctx context.Context, l string) (*model.Translation, error)

func (*TranslationStore) CreateLanguage

func (t *TranslationStore) CreateLanguage(_ context.Context, key string, translation *model.Translation) error

func (*TranslationStore) ListLanguages

func (t *TranslationStore) ListLanguages(ctx context.Context) ([]string, error)

func (*TranslationStore) UpdateLanguages

func (t *TranslationStore) UpdateLanguages(ctx context.Context, translations map[string]*model.Translation) error

Jump to

Keyboard shortcuts

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