storage

package
v0.0.0-...-f44ad72 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2022 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlarmStatus

type AlarmStatus struct {
	Online bool   `redis:"online"`
	Firing bool   `redis:"firing"`
	Mode   string `redis:"mode"`
	Name   string `redis:"name"`
}

type Storage

type Storage struct {
	RedisClient *goredis.Client
}

func (Storage) CheckAndUpdate

func (storage Storage) CheckAndUpdate(ctx context.Context, devicesInfo map[string]apiwatcher.DeviceInfo) (map[string]apiwatcher.DeviceInfo, map[string]string, map[string]bool, map[string]bool, error)

Jump to

Keyboard shortcuts

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