handlers

package
v0.0.0-...-fa63688 Latest Latest
Warning

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

Go to latest
Published: May 9, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthHandlers

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

AuthHandlers Get Handlers

func NewAuthHandlers

func NewAuthHandlers(log *utils.Log, srv *services.ServiceStorage) *AuthHandlers

NewAuthHandlers Make new struct

func (*AuthHandlers) MenuList

func (m *AuthHandlers) MenuList(ctx *fasthttp.RequestCtx)

MenuList Get menu list

func (*AuthHandlers) UserExists

func (m *AuthHandlers) UserExists(ctx *fasthttp.RequestCtx)

MenuList Get menu list

type LogHandlers

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

LogHandlers Get Handlers

func NewLogHandlers

func NewLogHandlers(log *utils.Log, srv *services.ServiceStorage) *LogHandlers

NewLogHandlers Make new struct

func (*LogHandlers) IsAuthorized

func (l *LogHandlers) IsAuthorized(user string, logType string, response *response.Response) bool

IsAuthorized Is user authorized

func (*LogHandlers) LogError

func (l *LogHandlers) LogError(ctx *fasthttp.RequestCtx)

LogError Log Error message

func (*LogHandlers) LogInfo

func (l *LogHandlers) LogInfo(ctx *fasthttp.RequestCtx)

LogInfo Log Info message

func (*LogHandlers) LogToday

func (l *LogHandlers) LogToday(ctx *fasthttp.RequestCtx)

LogToday Log today messages

func (*LogHandlers) LogWarn

func (l *LogHandlers) LogWarn(ctx *fasthttp.RequestCtx)

LogWarn Log Warning message

type MeteoHandlers

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

MeteoHandlers Get Handlers

func NewMeteoHandlers

func NewMeteoHandlers(log *utils.Log, srv *services.ServiceStorage) *MeteoHandlers

NewMeteoHandlers Make new struct

func (*MeteoHandlers) IsAuthorized

func (h *MeteoHandlers) IsAuthorized(user string, device string, response *response.Response) bool

IsAuthorized Is user authorized

func (*MeteoHandlers) MeteoClear

func (h *MeteoHandlers) MeteoClear(ctx *fasthttp.RequestCtx)

MeteoClear Clear meteo info by alias

func (*MeteoHandlers) MeteoInfo

func (h *MeteoHandlers) MeteoInfo(ctx *fasthttp.RequestCtx)

MeteoInfo Meteo info from device by alias

func (*MeteoHandlers) MeteoInfoAll

func (h *MeteoHandlers) MeteoInfoAll(ctx *fasthttp.RequestCtx)

MeteoInfoAll Meteo info from all devices

func (*MeteoHandlers) MeteoInfoByDate

func (h *MeteoHandlers) MeteoInfoByDate(ctx *fasthttp.RequestCtx)

MeteoInfoByDate Meteo info from device by date

type MeteoInfo

type MeteoInfo struct {
	Alias string `json:"alias"`
	Temp  int    `json:"temp"`
	Hum   int    `json:"hum"`
	Pres  int    `json:"pres"`
}

MeteoInfo Meteo info struct

type MeteoInfoByDate

type MeteoInfoByDate struct {
	Temp int    `json:"temp"`
	Hum  int    `json:"hum"`
	Pres int    `json:"pres"`
	Time string `json:"time"`
}

MeteoInfoByDate Meteo info by date struct

type VisionHandlers

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

VisionHandlers Get Handlers

func NewVisionHandlers

func NewVisionHandlers(log *utils.Log, srv *services.ServiceStorage) *VisionHandlers

NewVisionHandlers Make new struct

func (*VisionHandlers) IsAuthorized

func (h *VisionHandlers) IsAuthorized(user string, device string, response *response.Response) bool

IsAuthorized Is user authorized

func (*VisionHandlers) TakeNightPhoto

func (h *VisionHandlers) TakeNightPhoto(ctx *fasthttp.RequestCtx)

TakeNightPhoto Take photo at night handler

func (*VisionHandlers) TakePhoto

func (h *VisionHandlers) TakePhoto(ctx *fasthttp.RequestCtx)

TakePhoto Take photo handler

type VisionInfo

type VisionInfo struct {
	ID int `json:"id"`
}

VisionInfo Vision info struct

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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