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