device_use_case

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CountDevicesUseCase

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

func NewCountDevicesUseCase

func NewCountDevicesUseCase(repository contract.DeviceRepository) *CountDevicesUseCase

func (*CountDevicesUseCase) Execute

func (c *CountDevicesUseCase) Execute(ctx context.Context) (int, error)

type DeleteDevicesByUsername

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

func NewDeleteDevicesByUsername

func NewDeleteDevicesByUsername(deviceRepository contract.DeviceRepository) *DeleteDevicesByUsername

func (*DeleteDevicesByUsername) Execute

func (d *DeleteDevicesByUsername) Execute(ctx context.Context, username string) error

type ListDevicesByUsernameUseCase

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

func NewListDevicesByUsernameUseCase

func NewListDevicesByUsernameUseCase(deviceRepository contract.DeviceRepository) *ListDevicesByUsernameUseCase

func (*ListDevicesByUsernameUseCase) Execute

func (l *ListDevicesByUsernameUseCase) Execute(ctx context.Context, username string) ([]*string, error)

type ListDevicesOutput

type ListDevicesOutput struct {
	ID       string `json:"id"`
	Username string `json:"username"`
}

type ListDevicesUseCase

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

func NewListDevicesUseCase

func NewListDevicesUseCase(deviceRepository contract.DeviceRepository) *ListDevicesUseCase

func (*ListDevicesUseCase) Execute

Jump to

Keyboard shortcuts

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