Documentation
¶
Index ¶
- type Database
- type TimescaleDB
- func (d *TimescaleDB) Add(m *types.Measurement) error
- func (d *TimescaleDB) Connect() error
- func (d *TimescaleDB) GetCrossings(since time.Duration) (crossings []*types.Crossing, err error)
- func (d *TimescaleDB) GetLines(since time.Duration) (lines []*types.Line, err error)
- func (d *TimescaleDB) GetPositions(since time.Duration) (positions []*types.Position, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TimescaleDB ¶
type TimescaleDB struct {
Host string
Port uint16
Username string
Password string
DatabaseName string
// contains filtered or unexported fields
}
func New ¶
func New(databaseURL string) *TimescaleDB
func (*TimescaleDB) Add ¶
func (d *TimescaleDB) Add(m *types.Measurement) error
func (*TimescaleDB) Connect ¶
func (d *TimescaleDB) Connect() error
func (*TimescaleDB) GetCrossings ¶
func (*TimescaleDB) GetPositions ¶
Click to show internal directories.
Click to hide internal directories.