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