5d6e792a85
need to decouple socketcan from gotelem
23 lines
379 B
Go
23 lines
379 B
Go
package gotelem
|
|
|
|
import (
|
|
"github.com/jmoiron/sqlx"
|
|
_ "github.com/mattn/go-sqlite3"
|
|
)
|
|
|
|
// this file implements a CAN adapter for the sqlite db.
|
|
|
|
type CanDB struct {
|
|
Db *sqlx.DB
|
|
}
|
|
|
|
func (cdb *CanDB) Send(_ *Frame) error {
|
|
panic("not implemented") // TODO: Implement
|
|
}
|
|
|
|
func (cdb *CanDB) Recv() (*Frame, error) {
|
|
panic("not implemented") // TODO: Implement
|
|
}
|
|
|
|
func NewCanDB()
|