controller

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Module

func Module() fx.Option

func RegisterDeviceController added in v0.1.0

func RegisterDeviceController(c DeviceController)

func RegisterReportController

func RegisterReportController(c ReportController)

Types

type DeviceController added in v0.1.0

type DeviceController struct {
	fx.In
	Route fiber.Router `name:"api-v1"`
}

func (*DeviceController) GetFilesystem added in v0.1.0

func (c *DeviceController) GetFilesystem(ctx *fiber.Ctx) error

func (*DeviceController) GetFirmware added in v0.1.0

func (c *DeviceController) GetFirmware(ctx *fiber.Ctx) error

func (*DeviceController) GetVersion added in v0.1.0

func (c *DeviceController) GetVersion(ctx *fiber.Ctx) error

type ReportController

type ReportController struct {
	fx.In
	TempSensor *stream.TempSensor
	HumSensor  *stream.HumSensor
	Route      fiber.Router `name:"api-v1"`
}

func (*ReportController) GetHum

func (c *ReportController) GetHum(ctx *fiber.Ctx) error

func (*ReportController) GetSensor

func (c *ReportController) GetSensor(ctx *fiber.Ctx) error

func (*ReportController) GetTemp

func (c *ReportController) GetTemp(ctx *fiber.Ctx) error

Jump to

Keyboard shortcuts

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