devicetype

package
v0.0.0-...-ebd6d4f Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceType

type DeviceType struct {
	ID                    uint   `json:"id"`
	Name                  string `json:"name"`
	InstallationManualURL string `json:"installation_manual_url"`
	InfoURL               string `json:"info_url"`
}

A DeviceType contains information about a group of devices with the same functionality.

func MakeDeviceType

func MakeDeviceType(name, installationManualURL, infoURL string) DeviceType

Create a new DeviceType.

type DeviceTypeRepository

type DeviceTypeRepository interface {
	Find(deviceType DeviceType) (DeviceType, error)
	GetAll() ([]DeviceType, error)
	Create(DeviceType) (DeviceType, error)
	Delete(DeviceType) error
}

A DeviceTypeRepository can load, store and delete device types.

Jump to

Keyboard shortcuts

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