models

package
v0.0.0-...-fc3ce7b Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDBConnection

func CreateDBConnection() (*sql.DB, error)

func DBReadEnv

func DBReadEnv()

Types

type VehicleFirmware

type VehicleFirmware struct {
	Id           int64
	ModelId      int
	FirmwareType VehicleFirmwareType
	Version      uint32
	Crc          uint32
	BinaryPath   string
	CreatedAt    time.Time

	FileLength uint32
	// contains filtered or unexported fields
}

func VehicleFirmwareFind

func VehicleFirmwareFind(ctx context.Context, conditions map[string]interface{}) *VehicleFirmware

func VehicleFirmwareGetLatest

func VehicleFirmwareGetLatest(ctx context.Context, model_id int) *VehicleFirmware

func VehicleModelGetLatestFirmware

func VehicleModelGetLatestFirmware(ctx context.Context, model_number uint32, firmwareType VehicleFirmwareType) *VehicleFirmware

func (*VehicleFirmware) Save

func (vf *VehicleFirmware) Save(ctx context.Context) error

type VehicleFirmwareType

type VehicleFirmwareType int
const (
	FIRMWARE_VCU VehicleFirmwareType = iota
	FIRMWARE_HMI
)

type VehicleModel

type VehicleModel struct {
	Id          int
	Name        string
	ModelNumber uint32
}

func VehicleModelFind

func VehicleModelFind(ctx context.Context, conditions map[string]interface{}) *VehicleModel

Jump to

Keyboard shortcuts

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