Documentation ¶
Index ¶
- func CreateDevice(db *sql.DB, device *Device) error
- func CreateDeviceType(db *sql.DB, deviceType *DeviceType) error
- func CreateFloorplanDevices(db *sql.DB, floorplanDevice *FloorplanDevices) error
- func CreateMotorhomeFloorplan(db *sql.DB, floorplan *MotorhomeFloorplan) error
- func CreateMotorhomeModel(db *sql.DB, model *MotorhomeModel) error
- func CreateMotorhomeModelYear(db *sql.DB, modelYear *MotorhomeModelYear) error
- func CreateNewUser(db *sql.DB, user *User) error
- func CreateUserPreset(db *sql.DB, preset *UserPreset) error
- func DeleteDevice(db *sql.DB, id int) error
- func DeleteDeviceType(db *sql.DB, id int) error
- func DeleteFloorplanDevices(db *sql.DB, id int) error
- func DeleteMotorhomeFloorplan(db *sql.DB, id int) error
- func DeleteMotorhomeModel(db *sql.DB, id int) error
- func DeleteMotorhomeModelYear(db *sql.DB, id int) error
- func DeleteUser(db *sql.DB, id int) error
- func GetSystemConfig(db *sql.DB, key string) (string, error)
- func SaveRVCMessage(db *sql.DB, message *rvc.Message) error
- func SetCurrentMotorhomeConfig(db *sql.DB, config *MotorhomeConfig) error
- func SetSystemConfig(db *sql.DB, key, value string) error
- func UpdateCurrentMotorhomeConfig(db *sql.DB, config *MotorhomeConfig) error
- func UpdateDevice(db *sql.DB, device *Device) error
- func UpdateDeviceType(db *sql.DB, deviceType *DeviceType) error
- func UpdateFloorplanDevices(db *sql.DB, floorplanDevice *FloorplanDevices) error
- func UpdateMotorhomeFloorplan(db *sql.DB, floorplan *MotorhomeFloorplan) error
- func UpdateMotorhomeModel(db *sql.DB, model *MotorhomeModel) error
- func UpdateMotorhomeModelYear(db *sql.DB, modelYear *MotorhomeModelYear) error
- func UpdateUser(db *sql.DB, user *User) error
- func UpdateUserPreset(db *sql.DB, preset *UserPreset) error
- type DB
- type Database
- type Device
- type DeviceType
- type FloorplanDevices
- type Message
- type MotorhomeConfig
- type MotorhomeFloorplan
- type MotorhomeModel
- type MotorhomeModelYear
- type NotificationsConfig
- type RVCMessage
- type SystemConfig
- type User
- type UserPreset
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDeviceType ¶
func CreateDeviceType(db *sql.DB, deviceType *DeviceType) error
func CreateFloorplanDevices ¶
func CreateFloorplanDevices(db *sql.DB, floorplanDevice *FloorplanDevices) error
func CreateMotorhomeFloorplan ¶
func CreateMotorhomeFloorplan(db *sql.DB, floorplan *MotorhomeFloorplan) error
func CreateMotorhomeModel ¶
func CreateMotorhomeModel(db *sql.DB, model *MotorhomeModel) error
func CreateMotorhomeModelYear ¶
func CreateMotorhomeModelYear(db *sql.DB, modelYear *MotorhomeModelYear) error
func CreateUserPreset ¶
func CreateUserPreset(db *sql.DB, preset *UserPreset) error
func SetCurrentMotorhomeConfig ¶
func SetCurrentMotorhomeConfig(db *sql.DB, config *MotorhomeConfig) error
func UpdateCurrentMotorhomeConfig ¶
func UpdateCurrentMotorhomeConfig(db *sql.DB, config *MotorhomeConfig) error
func UpdateDeviceType ¶
func UpdateDeviceType(db *sql.DB, deviceType *DeviceType) error
func UpdateFloorplanDevices ¶
func UpdateFloorplanDevices(db *sql.DB, floorplanDevice *FloorplanDevices) error
func UpdateMotorhomeFloorplan ¶
func UpdateMotorhomeFloorplan(db *sql.DB, floorplan *MotorhomeFloorplan) error
func UpdateMotorhomeModel ¶
func UpdateMotorhomeModel(db *sql.DB, model *MotorhomeModel) error
func UpdateMotorhomeModelYear ¶
func UpdateMotorhomeModelYear(db *sql.DB, modelYear *MotorhomeModelYear) error
func UpdateUserPreset ¶
func UpdateUserPreset(db *sql.DB, preset *UserPreset) error
Types ¶
type Database ¶
Rename the struct to avoid redeclaration
type DeviceType ¶
func ReadDeviceTypes ¶
func ReadDeviceTypes(db *sql.DB) ([]DeviceType, error)
type FloorplanDevices ¶
func ReadFloorplanDevices ¶
func ReadFloorplanDevices(db *sql.DB) ([]FloorplanDevices, error)
type MotorhomeConfig ¶
func ReadCurrentMotorhomeConfig ¶
func ReadCurrentMotorhomeConfig(db *sql.DB) (*MotorhomeConfig, error)
type MotorhomeFloorplan ¶
type MotorhomeFloorplan struct { ID int ModelID int Name string Description string ImageURL string }
func ReadMotorhomeFloorplans ¶
func ReadMotorhomeFloorplans(db *sql.DB) ([]MotorhomeFloorplan, error)
type MotorhomeModel ¶
func ReadMotorhomeModels ¶
func ReadMotorhomeModels(db *sql.DB) ([]MotorhomeModel, error)
type MotorhomeModelYear ¶
func ReadMotorhomeModelYears ¶
func ReadMotorhomeModelYears(db *sql.DB) ([]MotorhomeModelYear, error)
type NotificationsConfig ¶
type SystemConfig ¶
Click to show internal directories.
Click to hide internal directories.