handler

package
v0.0.0-...-0ab47bb Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SQL

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

SQL core struct

func GetSQLHandler

func GetSQLHandler(cfg commons.Config) *SQL

GetSQLHandler intatiates this handler

func (*SQL) GetLastMotion

func (s *SQL) GetLastMotion() ([]*structs.Motion, error)

GetLastMotion returns last ten motion changes

func (*SQL) StoreAlive

func (s *SQL) StoreAlive(timestamp float64) bool

StoreAlive stores a ping message

func (*SQL) StoreMotion

func (s *SQL) StoreMotion(motion int64, duration float64, start float64) bool

StoreMotion stores a motion message

Jump to

Keyboard shortcuts

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