models

package
v0.0.0-...-e8370c2 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 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 Device

type Device struct {
	Id        string     `json:"id"`
	Type      DeviceType `json:"type"`
	Name      string     `json:"name"`
	CreatedAt time.Time  `json:"date"`
}

func (*Device) Create

func (d *Device) Create() (string, error)

func (*Device) Delete

func (d *Device) Delete() error

func (*Device) Update

func (d *Device) Update() error

type DeviceList

type DeviceList []Device

type DeviceType

type DeviceType string
const (
	DeviceSmartphone DeviceType = "smartphone"
	DeviceTablet     DeviceType = "tablet"
	DeviceIot        DeviceType = "iot"
)

Jump to

Keyboard shortcuts

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