repository

package
v0.0.0-...-1b631ba Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TetapanRepository

type TetapanRepository interface {
	FindAll() ([]model.Tetapan, error)
	FindByKunci(kunci string) (model.Tetapan, error)
}

func NewTetapanRepository

func NewTetapanRepository(db *gorm.DB) TetapanRepository

type TetapanRepositoryImpl

type TetapanRepositoryImpl struct {
	Db *gorm.DB
}

func (*TetapanRepositoryImpl) FindAll

func (repo *TetapanRepositoryImpl) FindAll() ([]model.Tetapan, error)

func (*TetapanRepositoryImpl) FindByKunci

func (repo *TetapanRepositoryImpl) FindByKunci(kunci string) (model.Tetapan, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL