profilewificonfigs

package
v1.0.0-beta.3 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrProfileWiFiConfigsUseCase = consoleerrors.CreateConsoleError("ProfilesWiFiUseCase")
	ErrDatabase                  = sqldb.DatabaseError{Console: consoleerrors.CreateConsoleError("ProfilesWiFiUseCase")}
	ErrNotFound                  = sqldb.NotFoundError{Console: consoleerrors.CreateConsoleError("ProfilesWiFiUseCase")}
)

Functions

This section is empty.

Types

type Feature

type Feature interface {
	GetByProfileName(ctx context.Context, profileName, tenantID string) ([]dto.ProfileWiFiConfigs, error)
	DeleteByProfileName(ctx context.Context, profileName, tenantID string) error
	Insert(ctx context.Context, p *dto.ProfileWiFiConfigs) error
}

type Repository

type Repository interface {
	GetByProfileName(ctx context.Context, profileName, tenantID string) ([]entity.ProfileWiFiConfigs, error)
	DeleteByProfileName(ctx context.Context, profileName, tenantID string) (bool, error)
	Insert(ctx context.Context, p *entity.ProfileWiFiConfigs) (string, error)
}

type UseCase

type UseCase struct {
	// contains filtered or unexported fields
}

func New

func New(r Repository, log logger.Interface) *UseCase

func (*UseCase) DeleteByProfileName

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

func (*UseCase) GetByProfileName

func (uc *UseCase) GetByProfileName(ctx context.Context, profileName, tenantID string) ([]dto.ProfileWiFiConfigs, error)

func (*UseCase) Insert

func (uc *UseCase) Insert(ctx context.Context, d *dto.ProfileWiFiConfigs) error

Jump to

Keyboard shortcuts

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