Documentation ¶
Index ¶
- type TenantRepository
- type TenantRepositoryImpl
- func (repo *TenantRepositoryImpl) Delete(id int64) error
- func (repo *TenantRepositoryImpl) FindAll() ([]model.Tenant, error)
- func (repo *TenantRepositoryImpl) FindById(id int64) (model.Tenant, error)
- func (repo *TenantRepositoryImpl) FindByNamespace(namespace string) (model.Tenant, error)
- func (repo *TenantRepositoryImpl) Upsert(tenant *model.Tenant) (model.Tenant, error)
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 ¶
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)
Click to show internal directories.
Click to hide internal directories.