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