command

package
v1.2.2-dev.40 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandAllExecutor

type CommandAllExecutor interface {
	Execute() ([]contract.Command, error)
}

Get All commands

type CommandByIdExecutor

type CommandByIdExecutor interface {
	Execute() (contract.Command, error)
}

Get Command By ID

func NewCommandById

func NewCommandById(db CommandLoader, cid string) CommandByIdExecutor

type CommandLoader

type CommandLoader interface {
	GetCommandsByDeviceId(did string) ([]contract.Command, error)
	GetAllCommands() ([]contract.Command, error)
	GetCommandById(id string) (contract.Command, error)
	GetCommandsByName(id string) ([]contract.Command, error)
}

type CommandsByNameExecutor

type CommandsByNameExecutor interface {
	Execute() ([]contract.Command, error)
}

Get Command By Name

func NewCommandsByName

func NewCommandsByName(db CommandLoader, cname string) CommandsByNameExecutor

type DeviceIdExecutor

type DeviceIdExecutor interface {
	Execute() ([]contract.Command, error)
}

Get commands by device id

func NewDeviceIdExecutor

func NewDeviceIdExecutor(db CommandLoader, deviceId string) DeviceIdExecutor

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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