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.WirelessConfig, error)
- func (uc *UseCase) GetByName(ctx context.Context, profileName, tenantID string) (*dto.WirelessConfig, error)
- func (uc *UseCase) GetCount(ctx context.Context, tenantID string) (int, error)
- func (uc *UseCase) Insert(ctx context.Context, d *dto.WirelessConfig) (*dto.WirelessConfig, error)
- func (uc *UseCase) Update(ctx context.Context, d *dto.WirelessConfig) (*dto.WirelessConfig, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrCountNotUnique = sqldb.NotUniqueError{Console: consoleerrors.CreateConsoleError("WifiConfigs")} ErrDomainsUseCase = consoleerrors.CreateConsoleError("WificonfigsUseCase") ErrDatabase = sqldb.DatabaseError{Console: consoleerrors.CreateConsoleError("WificonfigsUseCase")} ErrNotFound = sqldb.NotFoundError{Console: consoleerrors.CreateConsoleError("WificonfigsUseCase")} )
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.WirelessConfig, error) GetByName(ctx context.Context, guid, tenantID string) (*dto.WirelessConfig, error) Delete(ctx context.Context, profileName, tenantID string) error Update(ctx context.Context, p *dto.WirelessConfig) (*dto.WirelessConfig, error) Insert(ctx context.Context, p *dto.WirelessConfig) (*dto.WirelessConfig, 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.WirelessConfig, error) GetByName(ctx context.Context, guid, tenantID string) (*entity.WirelessConfig, error) Delete(ctx context.Context, profileName, tenantID string) (bool, error) Update(ctx context.Context, p *entity.WirelessConfig) (bool, error) Insert(ctx context.Context, p *entity.WirelessConfig) (string, error) }
type UseCase ¶
type UseCase struct {
// contains filtered or unexported fields
}
UseCase -.
func New ¶
func New(r Repository, ieee ieee8021xconfigs.Feature, log logger.Interface) *UseCase
New -.
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.WirelessConfig) (*dto.WirelessConfig, error)
func (*UseCase) Update ¶
func (uc *UseCase) Update(ctx context.Context, d *dto.WirelessConfig) (*dto.WirelessConfig, error)
Click to show internal directories.
Click to hide internal directories.