routes

package
v0.0.0-...-34c5bf1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(r taxiRouter, h handler)

Register adds the service's routes to the router

Types

type Controller

type Controller struct {
	DeviceRepository *repository.DeviceRepository
	RoomRepository   *repository.RoomRepository
}

Controller handles requests

func (*Controller) GetDevice

GetDevice returns a specific device by ID

func (*Controller) GetRoom

GetRoom returns a specific room by ID, including its devices.

func (*Controller) ListDevices

ListDevices lists all devices known by the registry. Results can be filtered by controller name.

func (*Controller) ListRooms

ListRooms returns all rooms known by the registry

Jump to

Keyboard shortcuts

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