historizeddb

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(wrappedRepository dbrepo.Repository) dbrepo.Repository

Types

type HistorizingRepository

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

func (*HistorizingRepository) AddAttendee

func (r *HistorizingRepository) AddAttendee(ctx context.Context, a *entity.Attendee) (uint, error)

func (*HistorizingRepository) AddBan

func (r *HistorizingRepository) AddBan(ctx context.Context, b *entity.Ban) (uint, error)

func (*HistorizingRepository) AddStatusChange

func (r *HistorizingRepository) AddStatusChange(ctx context.Context, sc *entity.StatusChange) error

func (*HistorizingRepository) Close

func (r *HistorizingRepository) Close()

func (*HistorizingRepository) CountAttendeesByIdentity

func (r *HistorizingRepository) CountAttendeesByIdentity(ctx context.Context, identity string) (int64, error)

func (*HistorizingRepository) CountAttendeesByNicknameZipEmail

func (r *HistorizingRepository) CountAttendeesByNicknameZipEmail(ctx context.Context, nickname string, zip string, email string) (int64, error)

func (*HistorizingRepository) DeleteBan

func (r *HistorizingRepository) DeleteBan(ctx context.Context, b *entity.Ban) error

func (*HistorizingRepository) FindAttendees

func (*HistorizingRepository) FindByIdentity

func (r *HistorizingRepository) FindByIdentity(ctx context.Context, identity string) ([]*entity.Attendee, error)

func (*HistorizingRepository) GetAdditionalInfoFor

func (r *HistorizingRepository) GetAdditionalInfoFor(ctx context.Context, attendeeId uint, area string) (*entity.AdditionalInfo, error)

func (*HistorizingRepository) GetAdminInfoByAttendeeId

func (r *HistorizingRepository) GetAdminInfoByAttendeeId(ctx context.Context, attendeeId uint) (*entity.AdminInfo, error)

func (*HistorizingRepository) GetAllBans

func (r *HistorizingRepository) GetAllBans(ctx context.Context) ([]*entity.Ban, error)

func (*HistorizingRepository) GetAttendeeById

func (r *HistorizingRepository) GetAttendeeById(ctx context.Context, id uint) (*entity.Attendee, error)

func (*HistorizingRepository) GetBanById

func (r *HistorizingRepository) GetBanById(ctx context.Context, id uint) (*entity.Ban, error)

func (*HistorizingRepository) GetLatestStatusChangeByAttendeeId

func (r *HistorizingRepository) GetLatestStatusChangeByAttendeeId(ctx context.Context, attendeeId uint) (*entity.StatusChange, error)

func (*HistorizingRepository) GetStatusChangesByAttendeeId

func (r *HistorizingRepository) GetStatusChangesByAttendeeId(ctx context.Context, attendeeId uint) ([]entity.StatusChange, error)

func (*HistorizingRepository) MaxAttendeeId

func (r *HistorizingRepository) MaxAttendeeId(ctx context.Context) (uint, error)

func (*HistorizingRepository) Migrate

func (r *HistorizingRepository) Migrate() error

func (*HistorizingRepository) Open

func (r *HistorizingRepository) Open() error

func (*HistorizingRepository) RecordHistory

func (r *HistorizingRepository) RecordHistory(ctx context.Context, h *entity.History) error

it is an error to call this from the outside. From the inside use wrappedRepository.RecordHistory to bypass the error

func (*HistorizingRepository) SoftDeleteAttendeeById

func (r *HistorizingRepository) SoftDeleteAttendeeById(ctx context.Context, id uint) error

func (*HistorizingRepository) UndeleteAttendeeById

func (r *HistorizingRepository) UndeleteAttendeeById(ctx context.Context, id uint) error

func (*HistorizingRepository) UpdateAttendee

func (r *HistorizingRepository) UpdateAttendee(ctx context.Context, a *entity.Attendee) error

func (*HistorizingRepository) UpdateBan

func (r *HistorizingRepository) UpdateBan(ctx context.Context, b *entity.Ban) error

func (*HistorizingRepository) WriteAdditionalInfo

func (r *HistorizingRepository) WriteAdditionalInfo(ctx context.Context, ad *entity.AdditionalInfo) error

func (*HistorizingRepository) WriteAdminInfo

func (r *HistorizingRepository) WriteAdminInfo(ctx context.Context, ai *entity.AdminInfo) error

Jump to

Keyboard shortcuts

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