handlers

package
v0.0.0-...-6d248b5 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2021 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceHandler

type DeviceHandler struct {
	// contains filtered or unexported fields
}

func NewDeviceHandler

func NewDeviceHandler(s *core.Storage, a *auth.Authorization, db *db.Database,
	l *utils.Log) *DeviceHandler

func (*DeviceHandler) AddDevice

func (d *DeviceHandler) AddDevice(ctx *fasthttp.RequestCtx)

func (*DeviceHandler) DeviceByDescription

func (d *DeviceHandler) DeviceByDescription(ctx *fasthttp.RequestCtx)

func (*DeviceHandler) DeviceList

func (d *DeviceHandler) DeviceList(ctx *fasthttp.RequestCtx)

func (*DeviceHandler) RemoveDevice

func (d *DeviceHandler) RemoveDevice(ctx *fasthttp.RequestCtx)

type GroupHandler

type GroupHandler struct {
	// contains filtered or unexported fields
}

func NewGroupHandler

func NewGroupHandler(a *auth.Authorization, l *utils.Log) *GroupHandler

func (*GroupHandler) Groups

func (r *GroupHandler) Groups(ctx *fasthttp.RequestCtx)

type ProfileHandler

type ProfileHandler struct {
	// contains filtered or unexported fields
}

func NewProfileHandler

func NewProfileHandler(s *core.Storage, a *auth.Authorization, db *db.Database,
	l *utils.Log) *ProfileHandler

func (*ProfileHandler) AddProfile

func (d *ProfileHandler) AddProfile(ctx *fasthttp.RequestCtx)

func (*ProfileHandler) AddProfileDevice

func (d *ProfileHandler) AddProfileDevice(ctx *fasthttp.RequestCtx)

func (*ProfileHandler) AddProfileGroup

func (d *ProfileHandler) AddProfileGroup(ctx *fasthttp.RequestCtx)

func (*ProfileHandler) ProfileList

func (d *ProfileHandler) ProfileList(ctx *fasthttp.RequestCtx)

func (*ProfileHandler) RemoveProfile

func (d *ProfileHandler) RemoveProfile(ctx *fasthttp.RequestCtx)

func (*ProfileHandler) RemoveProfileDevice

func (d *ProfileHandler) RemoveProfileDevice(ctx *fasthttp.RequestCtx)

func (*ProfileHandler) RemoveProfileGroup

func (d *ProfileHandler) RemoveProfileGroup(ctx *fasthttp.RequestCtx)

type RelayHandler

type RelayHandler struct {
	// contains filtered or unexported fields
}

func NewRelayHandler

func NewRelayHandler(s *core.Storage, a *auth.Authorization, l *utils.Log, db *db.Database) *RelayHandler

func (*RelayHandler) Devices

func (r *RelayHandler) Devices(ctx *fasthttp.RequestCtx)

func (*RelayHandler) SetStatus

func (r *RelayHandler) SetStatus(ctx *fasthttp.RequestCtx)

func (*RelayHandler) Status

func (r *RelayHandler) Status(ctx *fasthttp.RequestCtx)

func (*RelayHandler) Switch

func (r *RelayHandler) Switch(ctx *fasthttp.RequestCtx)

func (*RelayHandler) Update

func (r *RelayHandler) Update(ctx *fasthttp.RequestCtx)

Jump to

Keyboard shortcuts

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