Documentation ¶
Index ¶
- type TenantRepo
- func (r *TenantRepo) CheckIfExistsById(ctx context.Context, id uint64) (bool, error)
- func (r *TenantRepo) CheckIfExistsByName(ctx context.Context, name string) (bool, error)
- func (r *TenantRepo) GetById(ctx context.Context, id uint64) (*models.Tenant, error)
- func (r *TenantRepo) GetByUuid(ctx context.Context, uid string) (*models.Tenant, error)
- func (r *TenantRepo) Insert(ctx context.Context, m *models.Tenant) error
- func (r *TenantRepo) InsertOrUpdateById(ctx context.Context, m *models.Tenant) error
- func (r *TenantRepo) ListAllIds(ctx context.Context) ([]uint64, error)
- func (r *TenantRepo) ListAllUuids(ctx context.Context) ([]string, error)
- func (r *TenantRepo) UpdateById(ctx context.Context, m *models.Tenant) error
- type UserRepo
- func (r *UserRepo) CheckIfExistsByEmail(ctx context.Context, email string) (bool, error)
- func (r *UserRepo) CheckIfExistsById(ctx context.Context, id uint64) (bool, error)
- func (r *UserRepo) GetByEmail(ctx context.Context, email string) (*models.User, error)
- func (r *UserRepo) GetById(ctx context.Context, id uint64) (*models.User, error)
- func (r *UserRepo) Insert(ctx context.Context, m *models.User) error
- func (r *UserRepo) InsertOrUpdateByEmail(ctx context.Context, m *models.User) error
- func (r *UserRepo) InsertOrUpdateById(ctx context.Context, m *models.User) error
- func (r *UserRepo) UpdateByEmail(ctx context.Context, m *models.User) error
- func (r *UserRepo) UpdateById(ctx context.Context, m *models.User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TenantRepo ¶
type TenantRepo struct {
// contains filtered or unexported fields
}
func NewTenantRepo ¶
func NewTenantRepo(dbpool *pgxpool.Pool) *TenantRepo
func (*TenantRepo) CheckIfExistsById ¶
func (*TenantRepo) CheckIfExistsByName ¶
func (*TenantRepo) InsertOrUpdateById ¶
func (*TenantRepo) ListAllIds ¶
func (r *TenantRepo) ListAllIds(ctx context.Context) ([]uint64, error)
func (*TenantRepo) ListAllUuids ¶
func (r *TenantRepo) ListAllUuids(ctx context.Context) ([]string, error)
func (*TenantRepo) UpdateById ¶
type UserRepo ¶
type UserRepo struct {
// contains filtered or unexported fields
}
func NewUserRepo ¶
func (*UserRepo) CheckIfExistsByEmail ¶
func (*UserRepo) CheckIfExistsById ¶
func (*UserRepo) GetByEmail ¶
func (*UserRepo) InsertOrUpdateByEmail ¶
func (*UserRepo) InsertOrUpdateById ¶
func (*UserRepo) UpdateByEmail ¶
Click to show internal directories.
Click to hide internal directories.