Documentation ¶
Index ¶
- type EventStore
- type GuestStore
- func (g *GuestStore) CreateGuest(ctx context.Context, guest *model.Guest) (uuid.UUID, error)
- func (g *GuestStore) DeleteGuest(ctx context.Context, guestID uuid.UUID) error
- func (g *GuestStore) GetGuestByID(ctx context.Context, guestID uuid.UUID) (*model.Guest, error)
- func (g *GuestStore) ListGuests(ctx context.Context) ([]*model.Guest, error)
- func (g *GuestStore) UpdateGuest(ctx context.Context, guest *model.Guest) error
- type InvitationStore
- func (i *InvitationStore) CreateInvitation(ctx context.Context, guestIDs ...uuid.UUID) (*model.Invitation, error)
- func (i *InvitationStore) GetInvitationByID(ctx context.Context, inviteID uuid.UUID) (*model.Invitation, error)
- func (i *InvitationStore) ListInvitations(ctx context.Context) ([]*model.Invitation, error)
- func (i *InvitationStore) UpdateInvitation(ctx context.Context, invite *model.Invitation) error
- type TranslationStore
- func (t *TranslationStore) ByLanguage(ctx context.Context, l string) (*model.Translation, error)
- func (t *TranslationStore) CreateLanguage(_ context.Context, key string, translation *model.Translation) error
- func (t *TranslationStore) ListLanguages(ctx context.Context) ([]string, error)
- func (t *TranslationStore) UpdateLanguages(ctx context.Context, translations map[string]*model.Translation) error
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) UpdateEvent ¶
type GuestStore ¶
type GuestStore struct {
// contains filtered or unexported fields
}
func NewGuestStore ¶
func NewGuestStore(db *bolt.DB) (*GuestStore, error)
func (*GuestStore) CreateGuest ¶
func (*GuestStore) DeleteGuest ¶
func (*GuestStore) GetGuestByID ¶
func (*GuestStore) ListGuests ¶
func (*GuestStore) UpdateGuest ¶
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
Click to show internal directories.
Click to hide internal directories.