Documentation ¶
Index ¶
- func Create(wrappedRepository dbrepo.Repository) dbrepo.Repository
- type HistorizingRepository
- func (r *HistorizingRepository) AddAttendee(ctx context.Context, a *entity.Attendee) (uint, error)
- func (r *HistorizingRepository) AddBan(ctx context.Context, b *entity.Ban) (uint, error)
- func (r *HistorizingRepository) AddStatusChange(ctx context.Context, sc *entity.StatusChange) error
- func (r *HistorizingRepository) Close()
- func (r *HistorizingRepository) CountAttendeesByIdentity(ctx context.Context, identity string) (int64, error)
- func (r *HistorizingRepository) CountAttendeesByNicknameZipEmail(ctx context.Context, nickname string, zip string, email string) (int64, error)
- func (r *HistorizingRepository) DeleteBan(ctx context.Context, b *entity.Ban) error
- func (r *HistorizingRepository) FindAttendees(ctx context.Context, criteria *attendee.AttendeeSearchCriteria) ([]*entity.AttendeeQueryResult, error)
- func (r *HistorizingRepository) FindByIdentity(ctx context.Context, identity string) ([]*entity.Attendee, error)
- func (r *HistorizingRepository) GetAdditionalInfoFor(ctx context.Context, attendeeId uint, area string) (*entity.AdditionalInfo, error)
- func (r *HistorizingRepository) GetAdminInfoByAttendeeId(ctx context.Context, attendeeId uint) (*entity.AdminInfo, error)
- func (r *HistorizingRepository) GetAllBans(ctx context.Context) ([]*entity.Ban, error)
- func (r *HistorizingRepository) GetAttendeeById(ctx context.Context, id uint) (*entity.Attendee, error)
- func (r *HistorizingRepository) GetBanById(ctx context.Context, id uint) (*entity.Ban, error)
- func (r *HistorizingRepository) GetLatestStatusChangeByAttendeeId(ctx context.Context, attendeeId uint) (*entity.StatusChange, error)
- func (r *HistorizingRepository) GetStatusChangesByAttendeeId(ctx context.Context, attendeeId uint) ([]entity.StatusChange, error)
- func (r *HistorizingRepository) MaxAttendeeId(ctx context.Context) (uint, error)
- func (r *HistorizingRepository) Migrate() error
- func (r *HistorizingRepository) Open() error
- func (r *HistorizingRepository) RecordHistory(ctx context.Context, h *entity.History) error
- func (r *HistorizingRepository) SoftDeleteAttendeeById(ctx context.Context, id uint) error
- func (r *HistorizingRepository) UndeleteAttendeeById(ctx context.Context, id uint) error
- func (r *HistorizingRepository) UpdateAttendee(ctx context.Context, a *entity.Attendee) error
- func (r *HistorizingRepository) UpdateBan(ctx context.Context, b *entity.Ban) error
- func (r *HistorizingRepository) WriteAdditionalInfo(ctx context.Context, ad *entity.AdditionalInfo) error
- func (r *HistorizingRepository) WriteAdminInfo(ctx context.Context, ai *entity.AdminInfo) error
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 (*HistorizingRepository) AddStatusChange ¶
func (r *HistorizingRepository) AddStatusChange(ctx context.Context, sc *entity.StatusChange) error
func (*HistorizingRepository) Close ¶
func (r *HistorizingRepository) Close()
func (*HistorizingRepository) CountAttendeesByIdentity ¶
func (*HistorizingRepository) CountAttendeesByNicknameZipEmail ¶
func (*HistorizingRepository) FindAttendees ¶
func (r *HistorizingRepository) FindAttendees(ctx context.Context, criteria *attendee.AttendeeSearchCriteria) ([]*entity.AttendeeQueryResult, error)
func (*HistorizingRepository) FindByIdentity ¶
func (*HistorizingRepository) GetAdditionalInfoFor ¶
func (r *HistorizingRepository) GetAdditionalInfoFor(ctx context.Context, attendeeId uint, area string) (*entity.AdditionalInfo, error)
func (*HistorizingRepository) GetAdminInfoByAttendeeId ¶
func (*HistorizingRepository) GetAllBans ¶
func (*HistorizingRepository) GetAttendeeById ¶
func (*HistorizingRepository) GetBanById ¶
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 ¶
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 (*HistorizingRepository) WriteAdditionalInfo ¶
func (r *HistorizingRepository) WriteAdditionalInfo(ctx context.Context, ad *entity.AdditionalInfo) error
func (*HistorizingRepository) WriteAdminInfo ¶
Click to show internal directories.
Click to hide internal directories.