Documentation ¶
Index ¶
- type Repository
- func (r *Repository) CheckUserExists(ctx context.Context, email, phoneNum string) (res bool)
- func (r *Repository) Fetch(ctx context.Context) (val []pmbulbi.Pendaftaran, err error)
- func (r *Repository) GetByEmail(ctx context.Context, email string) (res pmbulbi.Pendaftaran, err error)
- func (r *Repository) GetByEmailOrPhone(ctx context.Context, email, phoneNum string) (res pmbulbi.Pendaftaran, err error)
- func (r *Repository) GetByEmailPass(ctx context.Context, email, password string) (data pmbulbi.Pendaftaran, err error)
- func (r *Repository) GetById(ctx context.Context, id string) (dest pmbulbi.Pendaftaran, err error)
- func (r *Repository) GetByPhone(ctx context.Context, phoneNum string) (res pmbulbi.Pendaftaran, err error)
- func (r *Repository) GetByPhoneNumPass(ctx context.Context, email, password string) (data pmbulbi.Pendaftaran, err error)
- func (r *Repository) Insert(ctx context.Context, val pmbulbi.Pendaftaran) (err error)
- func (r *Repository) Update(ctx context.Context, id string, data pmbulbi.Pendaftaran) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func NewRepository ¶
func NewRepository(db *gorm.DB) *Repository
func (*Repository) CheckUserExists ¶ added in v0.4.6
func (r *Repository) CheckUserExists(ctx context.Context, email, phoneNum string) (res bool)
func (*Repository) Fetch ¶
func (r *Repository) Fetch(ctx context.Context) (val []pmbulbi.Pendaftaran, err error)
func (*Repository) GetByEmail ¶ added in v0.5.0
func (r *Repository) GetByEmail(ctx context.Context, email string) (res pmbulbi.Pendaftaran, err error)
func (*Repository) GetByEmailOrPhone ¶ added in v0.4.9
func (r *Repository) GetByEmailOrPhone(ctx context.Context, email, phoneNum string) (res pmbulbi.Pendaftaran, err error)
func (*Repository) GetByEmailPass ¶ added in v0.4.6
func (r *Repository) GetByEmailPass(ctx context.Context, email, password string) (data pmbulbi.Pendaftaran, err error)
func (*Repository) GetById ¶
func (r *Repository) GetById(ctx context.Context, id string) (dest pmbulbi.Pendaftaran, err error)
func (*Repository) GetByPhone ¶ added in v0.5.0
func (r *Repository) GetByPhone(ctx context.Context, phoneNum string) (res pmbulbi.Pendaftaran, err error)
func (*Repository) GetByPhoneNumPass ¶ added in v0.4.6
func (r *Repository) GetByPhoneNumPass(ctx context.Context, email, password string) (data pmbulbi.Pendaftaran, err error)
func (*Repository) Insert ¶ added in v0.4.4
func (r *Repository) Insert(ctx context.Context, val pmbulbi.Pendaftaran) (err error)
func (*Repository) Update ¶ added in v0.4.7
func (r *Repository) Update(ctx context.Context, id string, data pmbulbi.Pendaftaran) (err error)
Click to show internal directories.
Click to hide internal directories.