device_use_case

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Nov 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 added in v0.1.9

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

func NewCountDevicesUseCase added in v0.1.9

func NewCountDevicesUseCase(repository contract.DeviceRepository) *CountDevicesUseCase

func (*CountDevicesUseCase) Execute added in v0.1.9

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 added in v0.1.8

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