Documentation ¶
Index ¶
- Variables
- type Feature
- type Repository
- type UseCase
- func (uc *UseCase) Delete(ctx context.Context, domainName, tenantID string) error
- func (uc *UseCase) Get(ctx context.Context, top, skip int, tenantID string) ([]dto.Domain, error)
- func (uc *UseCase) GetByName(ctx context.Context, domainName, tenantID string) (*dto.Domain, error)
- func (uc *UseCase) GetCount(ctx context.Context, tenantID string) (int, error)
- func (uc *UseCase) GetDomainByDomainSuffix(ctx context.Context, domainSuffix, tenantID string) (*dto.Domain, error)
- func (uc *UseCase) Insert(ctx context.Context, d *dto.Domain) (*dto.Domain, error)
- func (uc *UseCase) Update(ctx context.Context, d *dto.Domain) (*dto.Domain, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrDomainsUseCase = consoleerrors.CreateConsoleError("DomainsUseCase") ErrDatabase = sqldb.DatabaseError{Console: consoleerrors.CreateConsoleError("DomainsUseCase")} ErrNotFound = sqldb.NotFoundError{Console: consoleerrors.CreateConsoleError("DomainsUseCase")} )
Functions ¶
This section is empty.
Types ¶
type Feature ¶
type Feature interface { GetCount(context.Context, string) (int, error) Get(ctx context.Context, top, skip int, tenantID string) ([]dto.Domain, error) GetDomainByDomainSuffix(ctx context.Context, domainSuffix, tenantID string) (*dto.Domain, error) GetByName(ctx context.Context, name, tenantID string) (*dto.Domain, error) Delete(ctx context.Context, name, tenantID string) error Update(ctx context.Context, d *dto.Domain) (*dto.Domain, error) Insert(ctx context.Context, d *dto.Domain) (*dto.Domain, error) }
type Repository ¶
type Repository interface { GetCount(context.Context, string) (int, error) Get(ctx context.Context, top, skip int, tenantID string) ([]entity.Domain, error) GetDomainByDomainSuffix(ctx context.Context, domainSuffix, tenantID string) (*entity.Domain, error) GetByName(ctx context.Context, name, tenantID string) (*entity.Domain, error) Delete(ctx context.Context, name, tenantID string) (bool, error) Update(ctx context.Context, d *entity.Domain) (bool, error) Insert(ctx context.Context, d *entity.Domain) (string, error) }
type UseCase ¶
type UseCase struct {
// contains filtered or unexported fields
}
UseCase -.
func (*UseCase) GetDomainByDomainSuffix ¶
Click to show internal directories.
Click to hide internal directories.