gov2x

package module
v0.0.0-...-720534f Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func GetOMParameters

func GetOMParameters(ip string, params []string, preifx string) (map[string]string, error)

func SetOMParameters

func SetOMParameters(ip string, params map[string]string, preifx string) error

Types

type DeviceModel

type DeviceModel string
const (
	// OBU
	DEVICE_MODEL_VU4004_01 DeviceModel = "VU4004-01"
	DEVICE_MODEL_VU4005_01 DeviceModel = "VU4005-01"
	DEVICE_MODEL_VU40E4_00 DeviceModel = "VU40E4-00"
	DEVICE_MODEL_VU40E4_20 DeviceModel = "VU40E4-20"
	DEVICE_MODEL_VU4105_00 DeviceModel = "VU4105-00"
	DEVICE_MODEL_VU4105_01 DeviceModel = "VU4105-01"
	DEVICE_MODEL_VU4105_11 DeviceModel = "VU4105-11"

	// RSU
	DEVICE_MODEL_DTVL3100_RSU   DeviceModel = "DTVL3100-RSU"
	DEVICE_MODEL_DTVL3110_RSU   DeviceModel = "DTVL3110-RSU"
	DEVICE_MODEL_DTVL3110E_RSU  DeviceModel = "DTVL3110E-RSU"
	DEVICE_MODEL_DTVL3110EB_RSU DeviceModel = "DTVL3110EB-RSU"
	DEVICE_MODEL_DTVL5000_RSU   DeviceModel = "DTVL5000-RSU"
	DEVICE_MODEL_DTVL5000E_RSU  DeviceModel = "DTVL5000E-RSU"

	// VBOX
	DEVICE_MODEL_DTVL3100_VBOX DeviceModel = "DTVL3100-VBOX"
)

type DeviceType

type DeviceType string
const (
	DEVICE_TYPE_OBU DeviceType = "OBU"
	DEVICE_TYPE_RSU DeviceType = "RSU"
	DEVICE_TYPE_VMS DeviceType = "VMS"
	DEVICE_TYPE_TSC DeviceType = "TSC"
	DEVICE_TYPE_LDR DeviceType = "LDR"
	DEVICE_TYPE_MER DeviceType = "MER"
	DEVICE_TYPE_MEC DeviceType = "MEC"
	DEVICE_TYPE_IPC DeviceType = "IPC"
)

func (DeviceType) MatchSoftwareVersion

func (own DeviceType) MatchSoftwareVersion(ver string) bool

type ModuleModel

type ModuleModel string
const (
	MODULE_MODEL_DMD31     ModuleModel = "DMD31"
	MODULE_MODEL_DMD3A     ModuleModel = "DMD3A"
	MODULE_MODEL_UNDEFINED ModuleModel = "UNDEFINED"
)

type V2XObject

type V2XObject struct {
	SN        string             `json:"serial_number" xml:"serial_number"`
	IP        string             `json:"device_ip" xml:"device_ip"`
	Container string             `json:"container_ip" xml:"container_ip"`
	Records   []*recorder.Record `json:"records" xml:"records"`
}

func New

func New(sn string, ip string) (*V2XObject, error)

func (*V2XObject) GetOMParameters

func (own *V2XObject) GetOMParameters(params []string, prefix string) (map[string]string, error)

Directories

Path Synopsis
om

Jump to

Keyboard shortcuts

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