Documentation ¶
Index ¶
- type AuthHandlers
- type LogHandlers
- func (l *LogHandlers) IsAuthorized(user string, logType string, response *response.Response) bool
- func (l *LogHandlers) LogError(ctx *fasthttp.RequestCtx)
- func (l *LogHandlers) LogInfo(ctx *fasthttp.RequestCtx)
- func (l *LogHandlers) LogToday(ctx *fasthttp.RequestCtx)
- func (l *LogHandlers) LogWarn(ctx *fasthttp.RequestCtx)
- type MeteoHandlers
- func (h *MeteoHandlers) IsAuthorized(user string, device string, response *response.Response) bool
- func (h *MeteoHandlers) MeteoClear(ctx *fasthttp.RequestCtx)
- func (h *MeteoHandlers) MeteoInfo(ctx *fasthttp.RequestCtx)
- func (h *MeteoHandlers) MeteoInfoAll(ctx *fasthttp.RequestCtx)
- func (h *MeteoHandlers) MeteoInfoByDate(ctx *fasthttp.RequestCtx)
- type MeteoInfo
- type MeteoInfoByDate
- type VisionHandlers
- type VisionInfo
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 ¶
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 ¶
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 ¶
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