iris/_examples/project/user/repository.go
2021-11-19 14:13:42 +02:00

13 lines
244 B
Go

package user
type Repository interface { // Repo methods here...
}
type repo struct { // Hold database instance here: e.g.
// *mydatabase_pkg.DB
}
func NewRepository( /* *mydatabase_pkg.DB */ ) Repository {
return &repo{ /* db: db */ }
}