sampledb

package
v0.0.0-...-baa17e1 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SELF_NAME = "postgres"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

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

func NewDB

func NewDB(db *pgxpool.Pool) (*DB, error)

func (*DB) Handle

func (d *DB) Handle(e event.Event) (err error)

func (*DB) String

func (d *DB) String() string

func (*DB) SubscribedEvents

func (d *DB) SubscribedEvents() map[string]any

type Position

type Position struct {
	Protocol   string
	DeviceID   string
	ServerTime time.Time
	DeviceTime time.Time
	FixTime    time.Time
	Valid      bool
	Latitude   float64
	Longitude  float64
	Altitude   float64
	Speed      float64
	Course     float64
	Address    null.String
	Attributes string
	Accuracy   float64
	Network    null.String
}

func CreateFromCommon

func CreateFromCommon(p common.Position) (*Position, error)

Jump to

Keyboard shortcuts

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