Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CRUDRepo ¶
type CRUDRepo[T any] interface { GORMDBGetter CreatorRepo[T] GetterRepo[T] UpdaterRepo[T] DeleterRepo[T] }
type CreatorRepo ¶
type DeleterRepo ¶
type GORMDBGetter ¶
type GetterRepo ¶
type Many2ManyCRUDRepo ¶
type OrganizeContestCRUDRepo ¶
type OrganizeContestCRUDRepo interface { OrganizeContestCreatorRepo OrganizeContestGetterRepo OrganizeContestUpdaterRepo OrganizeContestDeleterRepo }
OrganizeContestCRUDRepo is an interface that allows full CRUD operations of a organzier on a contest on a certain data source :)
type OrganizeContestCreatorRepo ¶
type OrganizeContestCreatorRepo interface {
Add(contest *models.OrganizeContest) error
}
OrganizeContestCreatorRepo is an interface that allows creation of a organizer on a contest into a certain data source :)
type OrganizeContestDeleterRepo ¶
type OrganizeContestDeleterRepo interface { Delete(oc models.OrganizeContest) error DeleteAll() error }
OrganizeContestDeleterRepo is an interface that allows deleting values of a organizer on a contest from a certain data source :)
type OrganizeContestGetterRepo ¶
type OrganizeContestGetterRepo interface { Exists(oc models.OrganizeContest) (bool, error) Get(oc models.OrganizeContest) (models.OrganizeContest, error) GetOrgs(contest models.Contest) ([]models.Organizer, error) GetContests(org models.Organizer) ([]models.Contest, error) Count() (int64, error) }
OrganizeContestGetterRepo is an interface that allows getting values of a organizer on a contest from a certain data source :)
type OrganizeContestUpdaterRepo ¶
type OrganizeContestUpdaterRepo interface {
Update(oc *models.OrganizeContest) error
}
OrganizeContestUpdaterRepo is an interface that allows updating values of a organizer on a contest in a certain data source :)