Documentation ¶
Index ¶
- type Repository
- func (r *Repository) Delete(ctx context.Context, id string) (err error)
- func (r *Repository) Fetch(ctx context.Context) (val []pmbulbi.JenisSekolah, err error)
- func (r *Repository) GetById(ctx context.Context, id string) (val pmbulbi.JenisSekolah, err error)
- func (r *Repository) Insert(ctx context.Context, val pmbulbi.JenisSekolah) (err error)
- func (r *Repository) Update(ctx context.Context, id string, val pmbulbi.JenisSekolah) (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) Fetch ¶
func (r *Repository) Fetch(ctx context.Context) (val []pmbulbi.JenisSekolah, err error)
func (*Repository) GetById ¶
func (r *Repository) GetById(ctx context.Context, id string) (val pmbulbi.JenisSekolah, err error)
func (*Repository) Insert ¶
func (r *Repository) Insert(ctx context.Context, val pmbulbi.JenisSekolah) (err error)
func (*Repository) Update ¶
func (r *Repository) Update(ctx context.Context, id string, val pmbulbi.JenisSekolah) (err error)
Click to show internal directories.
Click to hide internal directories.