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