wificonfigs

package
v1.0.0-alpha.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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

New -.

func (*UseCase) CheckProfileExists

func (uc *UseCase) CheckProfileExists(ctx context.Context, profileName, tenantID string) (bool, error)

History - getting translate history from store.

func (*UseCase) Delete

func (uc *UseCase) Delete(ctx context.Context, profileName, tenantID string) error

func (*UseCase) Get

func (uc *UseCase) Get(ctx context.Context, top, skip int, tenantID string) ([]dto.WirelessConfig, error)

func (*UseCase) GetByName

func (uc *UseCase) GetByName(ctx context.Context, profileName, tenantID string) (*dto.WirelessConfig, error)

func (*UseCase) GetCount

func (uc *UseCase) GetCount(ctx context.Context, tenantID string) (int, error)

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL