goblin

package module
v0.0.0-...-d18bb8d Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2025 License: MIT Imports: 1 Imported by: 0

README

Goblin

My own, benevolent (I hope) goblin that will manage my house.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Room

type Room struct {
	Id      string
	Name    string
	Sensors []*Sensor
}

func NewRoom

func NewRoom(id, name string) Room

type RoomFilter

type RoomFilter struct {
	Id   *string
	Name *string
}

type RoomService

type RoomService interface {
	RoomById(context.Context, string) (*Room, error)
	CreateRoom(context.Context, *Room) error
	DeleteRoom(context.Context, string) error
}

type Sensor

type Sensor struct {
	Id         string
	SensorType string
	RoomId     string
}

type SensorFilter

type SensorFilter struct {
	Id     *string
	RoomId *string
}

type SensorService

type SensorService interface {
	SensorById(context.Context, string) (*Sensor, error)
	CreateSensor(context.Context, *Sensor) error
	DeleteSensor(context.Context, string) error
	UpdateRoom(context.Context, string, string) error
}

Directories

Path Synopsis
cmd
goblin command

Jump to

Keyboard shortcuts

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