usecase

package
v0.0.0-...-8c278e4 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2021 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRequiredParam    = errors.New("required param")
	ErrUnsupportedParam = errors.New("unsupported param")
	ErrSendingRequest   = errors.New("error sending request")
	ErrReadingResponse  = errors.New("error reading response")
)

Functions

This section is empty.

Types

type Build

type Build interface {
	BuildClientBinary(params []string) error
}

type Download

type Download interface {
	Validate(params []string) error
	File(filepath string)
}

type Information

type Information interface {
	Collect()
}

type LockScreen

type LockScreen interface {
	Lock() error
}

type OpenURL

type OpenURL interface {
	Open(url []string) error
}

type Persistence

type Persistence interface {
	Validate(params []string) error
	Persist(status string) error
}

type Screenshot

type Screenshot interface {
	TakeScreenshot() error
}

type Serve

type Serve interface {
	ServeDirectory(values []string)
}

type SnapWebcam

type SnapWebcam interface {
	Snap() error
}

type Terminal

type Terminal interface {
	Run(cmd string)
}

type Upload

type Upload interface {
	Validate(params []string) error
	File(filepathFrom string, filepathTo string)
}

type UseCase

type UseCase struct {
	Terminal    Terminal
	Information Information
	Download    Download
	Upload      Upload
	Screenshot  Screenshot
	Persistence Persistence
	OpenURL     OpenURL
	LockScreen  LockScreen
	SnapWebcam  SnapWebcam
}

Jump to

Keyboard shortcuts

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