database

package
v0.0.0-...-2b06859 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 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 AccelerometerReading

type AccelerometerReading struct {
	TimeStampMs uint32    `json:"timeStampMs"`
	ReceivedAt  time.Time `json:"receivedAt,omitempty"`
	X           float32   `json:"x"`
	Y           float32   `json:"y"`
	Z           float32   `json:"z"`
}

type IDBConnection

type IDBConnection interface {
	AddReading(reading *AccelerometerReading)
}

func NewSqLiteDbConnection

func NewSqLiteDbConnection(connectionString string, logger logging.ILogger) (IDBConnection, error)

constructor for an sqlite database connection

type SqLiteDbConnection

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

func (*SqLiteDbConnection) AddReading

func (s *SqLiteDbConnection) AddReading(reading *AccelerometerReading)

adds a reading to the channel, to be written by a separate goroutine to the db

Jump to

Keyboard shortcuts

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