omc

package
v0.0.0-...-a554094 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEVICE_TYPE_VMS uint = iota + 17
	DEVICE_TYPE_TSC
	DEVICE_TYPE_LDR
	DEVICE_TYPE_MER
	DEVICE_TYPE_IPC
	DEVICE_TYPE_MEC
	DEVICE_TYPE_OBU
	DEVICE_TYPE_RSU
)
View Source
const (
	DEVICE_MODEL_RSU_3100 uint = iota + 31
	DEVICE_MODEL_VBOX_3100
	DEVICE_MODEL_RSU_3110
	DEVICE_MODEL_RSU_3110E
	DEVICE_MODEL_RSU_3110P
	DEVICE_MODEL_RSU_5000
	DEVICE_MODEL_RSU_5000E

	DEVICE_MODEL_OBU_4004_01 uint = 40
	DEVICE_MODEL_OBU_4005_01 uint = 41
	DEVICE_MODEL_OBU_40E4_00 uint = 42
	DEVICE_MODEL_OBU_4105_01 uint = 43
	DEVICE_MODEL_OBU_40E4_20 uint = 44
	DEVICE_MODEL_OBU_4105_11 uint = 45
	DEVICE_MODEL_OBU_4105_00 uint = 46
	DEVICE_MODEL_RSU_3110EB  uint = 47
)
View Source
const (
	API_LOGIN = "/web/login/login"
)
View Source
const PUBLIC_KEY = `` /* 180-byte string literal not displayed */

Variables

This section is empty.

Functions

func EncryptPassword

func EncryptPassword(pwd string) (string, error)

func ReadResponseBody

func ReadResponseBody(resp *http.Response, data any) error

Types

type OMC

type OMC struct {
	// contains filtered or unexported fields
}

func New

func New(host string) *OMC

func (*OMC) Login

func (own *OMC) Login(network, user, pwd string) error

func (*OMC) RegisterDevice

func (own *OMC) RegisterDevice(ip string) error

Jump to

Keyboard shortcuts

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