repository

package
v0.0.0-...-ed15e27 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 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 TenantRepository

type TenantRepository interface {
	FindAll() ([]model.Tenant, error)
	FindById(id int64) (model.Tenant, error)
	FindByNamespace(namespace string) (model.Tenant, error)
	Upsert(tenant *model.Tenant) (model.Tenant, error)
	Delete(id int64) error
}

func NewTenantRepository

func NewTenantRepository(db *gorm.DB) TenantRepository

type TenantRepositoryImpl

type TenantRepositoryImpl struct {
	Db *gorm.DB
}

func (*TenantRepositoryImpl) Delete

func (repo *TenantRepositoryImpl) Delete(id int64) error

func (*TenantRepositoryImpl) FindAll

func (repo *TenantRepositoryImpl) FindAll() ([]model.Tenant, error)

func (*TenantRepositoryImpl) FindById

func (repo *TenantRepositoryImpl) FindById(id int64) (model.Tenant, error)

func (*TenantRepositoryImpl) FindByNamespace

func (repo *TenantRepositoryImpl) FindByNamespace(namespace string) (model.Tenant, error)

func (*TenantRepositoryImpl) Upsert

func (repo *TenantRepositoryImpl) Upsert(tenant *model.Tenant) (model.Tenant, error)

Jump to

Keyboard shortcuts

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