property

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 Property

type Property struct {
	ID   uint   `json:"id"`
	Name string `json:"name"`
}

A Property is the type of a measurement.

func MakeProperty

func MakeProperty(name string) Property

Create a new Property.

type PropertyRepository

type PropertyRepository interface {
	Find(property Property) (Property, error)
	GetAll() ([]Property, error)
	Create(Property) (Property, error)
	Delete(Property) error
}

A DeviceTypeRepository can load, store and delete properties.

Jump to

Keyboard shortcuts

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