Documentation ¶
Overview ¶
RhinoH3 固件相关操作
Index ¶
- Constants
- func AiBase(c *gin.Context, ruleEngine typex.RuleX)
- func AllHwPorts(c *gin.Context, ruleEngine typex.RuleX)
- func AppDetail(c *gin.Context, ruleEngine typex.RuleX)
- func ApplyNewestEtcEthConfig() error
- func Apps(c *gin.Context, ruleEngine typex.RuleX)
- func BindResource(c *gin.Context, ruleEngine typex.RuleX)
- func CatOsRelease(c *gin.Context, ruleEngine typex.RuleX)
- func ChangeX(filePath string) error
- func CleanDhcpClients(c *gin.Context, ruleEngine typex.RuleX)
- func CleanGoodsUpload(c *gin.Context, ruleEngine typex.RuleX)
- func ClearInternalNotifies(c *gin.Context, ruleEngine typex.RuleX)
- func CreateAiBase(c *gin.Context, ruleEngine typex.RuleX)
- func CreateApp(c *gin.Context, ruleEngine typex.RuleX)
- func CreateCronTask(c *gin.Context, ruleEngine typex.RuleX) (any, error)
- func CreateDataSchema(c *gin.Context, ruleEngine typex.RuleX)
- func CreateDevice(c *gin.Context, ruleEngine typex.RuleX)
- func CreateGoods(c *gin.Context, ruleEngine typex.RuleX)
- func CreateGroup(c *gin.Context, ruleEngine typex.RuleX)
- func CreateInend(c *gin.Context, ruleEngine typex.RuleX)
- func CreateIotSchemaProperty(c *gin.Context, ruleEngine typex.RuleX)
- func CreateOutEnd(c *gin.Context, ruleEngine typex.RuleX)
- func CreateProtocolApp(c *gin.Context, ruleEngine typex.RuleX)
- func CreateRule(c *gin.Context, ruleEngine typex.RuleX)
- func CreateUser(c *gin.Context, ruleEngine typex.RuleX)
- func CreateUserLuaTemplate(c *gin.Context, ruleEngine typex.RuleX)
- func CreateVisual(c *gin.Context, ruleEngine typex.RuleX)
- func DataSchemaDetail(c *gin.Context, ruleEngine typex.RuleX)
- func DeleteAiBase(c *gin.Context, ruleEngine typex.RuleX)
- func DeleteCronTask(c *gin.Context, ruleEngine typex.RuleX) (any, error)
- func DeleteDataSchema(c *gin.Context, ruleEngine typex.RuleX)
- func DeleteDevice(c *gin.Context, ruleEngine typex.RuleX)
- func DeleteDhcpClient(c *gin.Context, ruleEngine typex.RuleX)
- func DeleteGoods(c *gin.Context, ruleEngine typex.RuleX)
- func DeleteGroup(c *gin.Context, ruleEngine typex.RuleX)
- func DeleteInEnd(c *gin.Context, ruleEngine typex.RuleX)
- func DeleteIotSchemaProperty(c *gin.Context, ruleEngine typex.RuleX)
- func DeleteOutEnd(c *gin.Context, ruleEngine typex.RuleX)
- func DeleteProtocolApp(c *gin.Context, ruleEngine typex.RuleX)
- func DeleteRule(c *gin.Context, ruleEngine typex.RuleX)
- func DeleteUserLuaTemplate(c *gin.Context, ruleEngine typex.RuleX)
- func DeleteVisual(c *gin.Context, ruleEngine typex.RuleX)
- func DeviceDetail(c *gin.Context, ruleEngine typex.RuleX)
- func DevicePropertiesPage(c *gin.Context, ruleEngine typex.RuleX)
- func DownloadSqlite(c *gin.Context, ruleEngine typex.RuleX)
- func Drivers(c *gin.Context, ruleEngine typex.RuleX)
- func Get4GBaseInfo(c *gin.Context, ruleEngine typex.RuleX)
- func Get4GCOPS(c *gin.Context, ruleEngine typex.RuleX)
- func Get4GCSQ(c *gin.Context, ruleEngine typex.RuleX)
- func Get4GICCID(c *gin.Context, ruleEngine typex.RuleX)
- func GetAPN(c *gin.Context, ruleEngine typex.RuleX)
- func GetAllResources(c *gin.Context, ruleEngine typex.RuleX)
- func GetCurrentNetConnection(c *gin.Context, ruleEngine typex.RuleX)
- func GetDHCP(c *gin.Context, ruleEngine typex.RuleX)
- func GetDhcpClients(c *gin.Context, ruleEngine typex.RuleX)
- func GetEthNetwork(c *gin.Context, ruleEngine typex.RuleX)
- func GetFlvStreamDetail(c *gin.Context, ruleEngine typex.RuleX)
- func GetFlvStreamList(c *gin.Context, ruleEngine typex.RuleX)
- func GetGpuInfo(c *gin.Context, ruleEngine typex.RuleX)
- func GetHwPortDetail(c *gin.Context, ruleEngine typex.RuleX)
- func GetInEndConfig(c *gin.Context, ruleEngine typex.RuleX)
- func GetInEndModels(c *gin.Context, ruleEngine typex.RuleX)
- func GetJpegStreamDetail(c *gin.Context, ruleEngine typex.RuleX)
- func GetJpegStreamList(c *gin.Context, ruleEngine typex.RuleX)
- func GetNetInterfaces(c *gin.Context, ruleEngine typex.RuleX)
- func GetNmcliDeviceShow(c *gin.Context, ruleEngine typex.RuleX)
- func GetNmcliDeviceStatus(c *gin.Context, ruleEngine typex.RuleX)
- func GetOldDefaultIpRoute(c *gin.Context, ruleEngine typex.RuleX)
- func GetQueryData(c *gin.Context, ruleEngine typex.RuleX)
- func GetRunningLog(c *gin.Context, ruleEngine typex.RuleX)
- func GetSchemaDefine(c *gin.Context, ruleEngine typex.RuleX)
- func GetSchemaDefineList(c *gin.Context, ruleEngine typex.RuleX)
- func GetSchemaDetail(c *gin.Context, ruleEngine typex.RuleX)
- func GetSchemaList(c *gin.Context, ruleEngine typex.RuleX)
- func GetSiteConfig(c *gin.Context, ruleEngine typex.RuleX)
- func GetSysLogo(c *gin.Context, ruleEngine typex.RuleX)
- func GetSystemTime(c *gin.Context, ruleEngine typex.RuleX)
- func GetThumbnail(c *gin.Context, ruleEngine typex.RuleX)
- func GetUartList(c *gin.Context, ruleEngine typex.RuleX)
- func GetUarts(c *gin.Context, ruleEngine typex.RuleX)
- func GetUpGradeLog(c *gin.Context, ruleEngine typex.RuleX)
- func GetVendorKey(c *gin.Context, ruleEngine typex.RuleX)
- func GetVideos(c *gin.Context, ruleEngine typex.RuleX)
- func GetVolume(c *gin.Context, ruleEngine typex.RuleX)
- func GetWifi(c *gin.Context, ruleEngine typex.RuleX)
- func GoodsDetail(c *gin.Context, ruleEngine typex.RuleX)
- func GoodsList(c *gin.Context, ruleEngine typex.RuleX)
- func GroupDetail(c *gin.Context, ruleEngine typex.RuleX)
- func Hnc8PointsExport(c *gin.Context, ruleEngine typex.RuleX)
- func Hnc8SheetDelete(c *gin.Context, ruleEngine typex.RuleX)
- func Hnc8SheetDeleteAll(c *gin.Context, ruleEngine typex.RuleX)
- func Hnc8SheetImport(c *gin.Context, ruleEngine typex.RuleX)
- func Hnc8SheetPageList(c *gin.Context, ruleEngine typex.RuleX)
- func Hnc8SheetUpdate(c *gin.Context, ruleEngine typex.RuleX)
- func InEndDetail(c *gin.Context, ruleEngine typex.RuleX)
- func InEnds(c *gin.Context, ruleEngine typex.RuleX)
- func Info(c *gin.Context, ruleEngine typex.RuleX)
- func InternalNotifies(c *gin.Context, ruleEngine typex.RuleX)
- func InternalNotifiesHeader(c *gin.Context, ruleEngine typex.RuleX)
- func IotSchemaPropertyDetail(c *gin.Context, ruleEngine typex.RuleX)
- func IotSchemaPropertyPageList(c *gin.Context, ruleEngine typex.RuleX)
- func IsExecutableFileUnix(filePath string) bool
- func IsExecutableFileWin(filePath string) bool
- func IsExecutableScript(fileExt string) bool
- func IsUnixElf(filePath string) bool
- func IsWinPE(filePath string) bool
- func ListByDevice(c *gin.Context, ruleEngine typex.RuleX)
- func ListByInend(c *gin.Context, ruleEngine typex.RuleX)
- func ListCronTask(c *gin.Context, ruleEngine typex.RuleX) (any, error)
- func ListDataSchema(c *gin.Context, ruleEngine typex.RuleX)
- func ListDeviceByGroup(c *gin.Context, ruleEngine typex.RuleX)
- func ListDeviceGroup(c *gin.Context, ruleEngine typex.RuleX)
- func ListGroup(c *gin.Context, ruleEngine typex.RuleX)
- func ListProtocolApp(c *gin.Context, ruleEngine typex.RuleX)
- func ListRunningTask(c *gin.Context, ruleEngine typex.RuleX) (any, error)
- func ListUserLuaTemplate(c *gin.Context, ruleEngine typex.RuleX)
- func ListUserLuaTemplateByGroup(c *gin.Context, ruleEngine typex.RuleX)
- func ListUserLuaTemplateGroup(c *gin.Context, ruleEngine typex.RuleX)
- func ListVisual(c *gin.Context, ruleEngine typex.RuleX)
- func ListVisualByGroup(c *gin.Context, ruleEngine typex.RuleX)
- func ListVisualGroup(c *gin.Context, ruleEngine typex.RuleX)
- func LoadSystemSettingsAPI()
- func LogOut(c *gin.Context, ruleEngine typex.RuleX)
- func Login(c *gin.Context, ruleEngine typex.RuleX)
- func ModbusPointsExport(c *gin.Context, ruleEngine typex.RuleX)
- func ModbusSheetDelete(c *gin.Context, ruleEngine typex.RuleX)
- func ModbusSheetDeleteAll(c *gin.Context, ruleEngine typex.RuleX)
- func ModbusSheetImport(c *gin.Context, ruleEngine typex.RuleX)
- func ModbusSheetPageList(c *gin.Context, ruleEngine typex.RuleX)
- func ModbusSheetUpdate(c *gin.Context, ruleEngine typex.RuleX)
- func MoveFile(sourcePath, destPath string) error
- func OutEndDetail(c *gin.Context, ruleEngine typex.RuleX)
- func OutEnds(c *gin.Context, ruleEngine typex.RuleX)
- func PageCronTaskResult(c *gin.Context, ruleEngine typex.RuleX) (any, error)
- func PathExists(path string) (bool, error)
- func Ping(c *gin.Context, ruleEngine typex.RuleX)
- func PluginDetail(c *gin.Context, ruleEngine typex.RuleX)
- func PluginService(c *gin.Context, ruleEngine typex.RuleX)
- func Plugins(c *gin.Context, ruleEngine typex.RuleX)
- func ProtocolAppDetail(c *gin.Context, ruleEngine typex.RuleX)
- func PublishVisual(c *gin.Context, ruleEngine typex.RuleX)
- func ReStartRulex(c *gin.Context, ruleEngine typex.RuleX)
- func ReadInternalNotifies(c *gin.Context, ruleEngine typex.RuleX)
- func ReadSQLiteFileMagicNumber(filePath string) ([16]byte, error)
- func Reboot(c *gin.Context, ruleEngine typex.RuleX)
- func RecoverNew(c *gin.Context, ruleEngine typex.RuleX)
- func RefreshPortList(c *gin.Context, ruleEngine typex.RuleX)
- func RemoveApp(c *gin.Context, ruleEngine typex.RuleX)
- func ResetInterMetric(c *gin.Context, ruleEngine typex.RuleX)
- func ResetSiteConfig(c *gin.Context, ruleEngine typex.RuleX)
- func RestartDevice(c *gin.Context, ruleEngine typex.RuleX)
- func RestartInEnd(c *gin.Context, ruleEngine typex.RuleX)
- func RestartOutEnd(c *gin.Context, ruleEngine typex.RuleX)
- func RhinoPiRestart4G(c *gin.Context, ruleEngine typex.RuleX)
- func RuleDetail(c *gin.Context, ruleEngine typex.RuleX)
- func Rules(c *gin.Context, ruleEngine typex.RuleX)
- func RunningLogPathExists(path string) bool
- func ScanWIFIWithNmcli(c *gin.Context, ruleEngine typex.RuleX)
- func SearchUserLuaTemplateGroup(c *gin.Context, ruleEngine typex.RuleX)
- func SetAPN(c *gin.Context, ruleEngine typex.RuleX)
- func SetDHCP(c *gin.Context, ruleEngine typex.RuleX)
- func SetEthNetwork(c *gin.Context, ruleEngine typex.RuleX)
- func SetNewDefaultIpRoute(c *gin.Context, ruleEngine typex.RuleX)
- func SetSystemTime(c *gin.Context, ruleEngine typex.RuleX)
- func SetVolume(c *gin.Context, ruleEngine typex.RuleX)
- func SetWifi(c *gin.Context, ruleEngine typex.RuleX)
- func SiemensPointsExport(c *gin.Context, ruleEngine typex.RuleX)
- func SiemensSheetDelete(c *gin.Context, ruleEngine typex.RuleX)
- func SiemensSheetDeleteAll(c *gin.Context, ruleEngine typex.RuleX)
- func SiemensSheetImport(c *gin.Context, ruleEngine typex.RuleX)
- func SiemensSheetPageList(c *gin.Context, ruleEngine typex.RuleX)
- func SiemensSheetUpdate(c *gin.Context, ruleEngine typex.RuleX)
- func SnapshotDump(c *gin.Context, ruleEngine typex.RuleX)
- func SourceCount(c *gin.Context, ruleEngine typex.RuleX)
- func StartApp(c *gin.Context, ruleEngine typex.RuleX)
- func StartGoods(c *gin.Context, ruleEngine typex.RuleX)
- func StartTask(c *gin.Context, ruleEngine typex.RuleX) (any, error)
- func StartedAt(c *gin.Context, ruleEngine typex.RuleX)
- func Statistics(c *gin.Context, ruleEngine typex.RuleX)
- func StopApp(c *gin.Context, ruleEngine typex.RuleX)
- func StopGoods(c *gin.Context, ruleEngine typex.RuleX)
- func StopTask(c *gin.Context, ruleEngine typex.RuleX) (any, error)
- func System(c *gin.Context, ruleEngine typex.RuleX)
- func TerminateRunningTask(c *gin.Context, ruleEngine typex.RuleX) (any, error)
- func TestCreateNotifies(c *gin.Context, ruleEngine typex.RuleX)
- func TestDeviceCallback(c *gin.Context, ruleEngine typex.RuleX)
- func TestOutEndCallback(c *gin.Context, ruleEngine typex.RuleX)
- func TestSourceCallback(c *gin.Context, ruleEngine typex.RuleX)
- func UnBindResource(c *gin.Context, ruleEngine typex.RuleX)
- func UpdateAiBase(c *gin.Context, ruleEngine typex.RuleX)
- func UpdateApp(c *gin.Context, ruleEngine typex.RuleX)
- func UpdateCronTask(c *gin.Context, ruleEngine typex.RuleX) (any, error)
- func UpdateDataSchema(c *gin.Context, ruleEngine typex.RuleX)
- func UpdateDevice(c *gin.Context, ruleEngine typex.RuleX)
- func UpdateGoods(c *gin.Context, ruleEngine typex.RuleX)
- func UpdateGroup(c *gin.Context, ruleEngine typex.RuleX)
- func UpdateHwPortConfig(c *gin.Context, ruleEngine typex.RuleX)
- func UpdateInend(c *gin.Context, ruleEngine typex.RuleX)
- func UpdateIotSchemaProperty(c *gin.Context, ruleEngine typex.RuleX)
- func UpdateOutEnd(c *gin.Context, ruleEngine typex.RuleX)
- func UpdateProtocolApp(c *gin.Context, ruleEngine typex.RuleX)
- func UpdateRule(c *gin.Context, ruleEngine typex.RuleX)
- func UpdateSiteConfig(c *gin.Context, ruleEngine typex.RuleX)
- func UpdateTimeByNtp(c *gin.Context, ruleEngine typex.RuleX)
- func UpdateUser(c *gin.Context, ruleEngine typex.RuleX)
- func UpdateUserLuaTemplate(c *gin.Context, ruleEngine typex.RuleX)
- func UpdateVisual(c *gin.Context, ruleEngine typex.RuleX)
- func UpgradeFirmWare(c *gin.Context, ruleEngine typex.RuleX)
- func UploadFile(c *gin.Context, ruleEngine typex.RuleX)
- func UploadFirmWare(c *gin.Context, ruleEngine typex.RuleX)
- func UploadSqlite(c *gin.Context, ruleEngine typex.RuleX)
- func UploadSysLogo(c *gin.Context, ruleEngine typex.RuleX)
- func UserDetail(c *gin.Context, ruleEngine typex.RuleX)
- func UserLuaTemplateDetail(c *gin.Context, ruleEngine typex.RuleX)
- func Users(c *gin.Context, ruleEngine typex.RuleX)
- func ValidateLuaSyntax(c *gin.Context, ruleEngine typex.RuleX)
- func VisualDetail(c *gin.Context, ruleEngine typex.RuleX)
- type APNFormVo
- type DHCPVo
- type DevicePropertyVo
- type DeviceVo
- type DhcpLeaseVo
- type FlvStreamVo
- type Hnc8PointVo
- type HwPortOccupyVo
- type HwPortVo
- type InternalNotifyVo
- type IoTPropertyRuleVo
- type IoTSchemaVo
- type IotPropertyVo
- type IpRouteVo
- type JpegStreamVo
- type JwtClaims
- type MGenericGroupRelationVo
- type MGenericGroupVo
- type ModbusPointVo
- type RulexResource
- type SiemensPointVo
- type SiteConfigVo
- type UartConfigVo
- type UserLuaTemplateVo
- type VisualVo
Constants ¶
const (
SECRETKEY = "you-can-not-get-this-secret"
)
Variables ¶
This section is empty.
Functions ¶
func CleanDhcpClients ¶ added in v0.6.6
* * 清空DHCP表 *
func CleanGoodsUpload ¶
* * 清理垃圾文件: 从数据库里面筛选出所有的路径检查是不是和本地文件匹配,没用的直接删了 *
func ClearInternalNotifies ¶
* * 清空 *
func CreateCronTask ¶
CreateCronTask godoc @BasePath /api/v1 @Summary 创建定时任务 @Tags crontask @param object body dto.CronTaskCreateDTO true "创建" @Accept json @Produce json @Success 200 {object} httpserver.R @Router /crontask/create [post]
func CreateDataSchema ¶
* * 新建一个物模型表 *
func CreateIotSchemaProperty ¶ added in v0.6.6
分页获取
func CreateOutEnd ¶
Create or Update OutEnd
func DeleteCronTask ¶
DeleteCronTask godoc @BasePath /api/v1 @Summary 删除定时任务 @Tags crontask @Param uuid query string true "uuid" @Accept json @Produce json @Success 200 {object} httpserver.R @Router /crontask/del [delete]
func DeleteDhcpClient ¶ added in v0.6.6
* * 删除某一个DHCP客户端 *
func DeleteIotSchemaProperty ¶ added in v0.6.6
删除属性
func DeleteUserLuaTemplate ¶
* * 删除用户模板 *
func DeviceDetail ¶
* * 列表先读数据库,然后读内存,合并状态后输出 *
func DevicePropertiesPage ¶ added in v0.6.6
* *物模型 *
func Get4GCOPS ¶
(1,"CHINA MOBILE","CMCC","46000",0), (3,"CHN-UNICOM","UNICOM","46001",7), +COPS: 0,0,\"CHINA MOBILE\",7
func GetCurrentNetConnection ¶
* * 获取当前网络情况 *
func GetDhcpClients ¶
* * 解析/var/lib/dhcp/dhcpd.leases文件获取DHCP客户端 *
func GetFlvStreamDetail ¶ added in v0.6.7
* * FlvStream详情 *
func GetFlvStreamList ¶ added in v0.6.7
* * FlvStream列表 *
func GetGpuInfo ¶ added in v0.6.7
* * 获取GPU信息 *
func GetJpegStreamDetail ¶ added in v0.6.7
* * JpegStream详情 *
func GetJpegStreamList ¶ added in v0.6.7
* * JpegStream列表 *
func GetNmcliDeviceShow ¶ added in v0.6.6
* 网卡详情: * nmcli device show eth0 *
func GetNmcliDeviceStatus ¶ added in v0.6.6
func GetOldDefaultIpRoute ¶
* * 获取上一次的路由 *
func GetSchemaDefine ¶
* * 获取单个仓库的表结构定义 *
func GetSchemaDefineList ¶
* * 获取仓库列表 *
func Hnc8PointsExport ¶ added in v0.6.7
Hnc8Points 获取Hnc8_excel类型的点位数据
func Hnc8SheetDelete ¶ added in v0.6.7
* *删除 *
func Hnc8SheetDeleteAll ¶ added in v0.6.7
* * 删除单行 *
func Hnc8SheetImport ¶ added in v0.6.7
Hnc8SheetImport 上传Excel文件
func Hnc8SheetPageList ¶ added in v0.6.7
分页获取 SELECT * FROM `m_Hnc8_data_points` WHERE `m_Hnc8_data_points`.`device_uuid` = "DEVICEDQNLO8" ORDER BY created_at DESC LIMIT 2 OFFSET 10
func Hnc8SheetUpdate ¶ added in v0.6.7
* * 更新点位表 *
func InternalNotifiesHeader ¶
* * 站内消息 *
func IotSchemaPropertyDetail ¶ added in v0.6.6
* * 分页查找数据 *
func IotSchemaPropertyPageList ¶ added in v0.6.6
* * 列表 *
func IsExecutableFileUnix ¶
* * 判断是否可执行(Linux Only) *
func ListByDevice ¶
* * 根据设备查询其Rules【0.6.4】 *
func ListByInend ¶
* * 根据输入查询其Rules【0.6.4】 *
func ListCronTask ¶
ListCronTask godoc @BasePath /api/v1 @Summary 获取所有定时任务 @Tags crontask @Produce json @Success 200 {object} httpserver.R @Router /crontask/list [get]
func ListUserLuaTemplate ¶
* * 用户模板列表 *
func ListUserLuaTemplateByGroup ¶
* * 用户模板分组查看 *
func ListVisualByGroup ¶
* * 大屏分组查看 *
func LoadSystemSettingsAPI ¶
func LoadSystemSettingsAPI()
func ModbusPointsExport ¶
ModbusPoints 获取modbus_excel类型的点位数据
func ModbusSheetDeleteAll ¶
* * 删除单行 *
func ModbusSheetImport ¶
ModbusSheetImport 上传Excel文件
func ModbusSheetPageList ¶
分页获取 SELECT * FROM `m_modbus_data_points` WHERE `m_modbus_data_points`.`device_uuid` = "DEVICEDQNLO8" ORDER BY created_at DESC LIMIT 2 OFFSET 10
func PageCronTaskResult ¶
PageCronTaskResult godoc @BasePath /api/v1 @Summary 分页获取定时任务执行结果 @Tags crontask @Param current query string false "current" @Param size query string false "size" @Param uuid query string false "uuid" @Accept json @Produce json @Success 200 {object} httpserver.R @Router /crontask/results/page [get]
func PathExists ¶
func ReadInternalNotifies ¶
* * 阅读 *
func RecoverNew ¶
* * 回复出厂, 直接删除配置即可,但是现阶段暂时不实现 *
func RefreshPortList ¶
* * 针对刚插入硬件的情况,需要及时刷新 *
func ResetInterMetric ¶ added in v0.6.7
* * 重置度量值 *
func RunningLogPathExists ¶
func ScanWIFIWithNmcli ¶
* * 扫描WIFI *
func SearchUserLuaTemplateGroup ¶
* * 模糊查询 *
func SetSystemTime ¶
*
- 设置时间、时区
- sudo date -s "2023-08-07 15:30:00" 获取时间: date "+%Y-%m-%d %H:%M:%S" -> 2023-08-07 15:30:00
func SiemensPointsExport ¶
SiemensPoints 获取Siemens_excel类型的点位数据
func SiemensSheetDeleteAll ¶
* * 删除单行 *
func SiemensSheetImport ¶
SiemensSheetImport 上传Excel文件
func SiemensSheetPageList ¶
分页获取 SELECT * FROM `m_Siemens_data_points` WHERE `m_Siemens_data_points`.`device_uuid` = "DEVICEDQNLO8" ORDER BY created_at DESC LIMIT 2 OFFSET 10
func SiemensSheetUpdate ¶
* * 更新点位表 *
func StartTask ¶
StartTask godoc @BasePath /api/v1 @Summary 启动定时任务 @Tags crontask @Param uuid query string true "uuid" @Produce json @Success 200 {object} httpserver.R @Router /crontask/start [get]
func StopTask ¶
StopTask godoc @BasePath /api/v1 @Summary 停止定时任务 @Tags crontask @Param uuid query string true "uuid" @Produce json @Success 200 {object} httpserver.R @Router /crontask/stop [get]
func TerminateRunningTask ¶
func TestDeviceCallback ¶
* * Device *
func TestOutEndCallback ¶
* * 测试 OutEnd 的结果 *
func TestSourceCallback ¶
* * 测试脚本执行效果 *
func UpdateCronTask ¶
UpdateCronTask godoc @BasePath /api/v1 @Summary 更新定时任务 @Tags crontask @param object body dto.CronTaskUpdateDTO true "更新" @Accept json @Produce json @Success 200 {object} httpserver.R @Router /crontask/update [put]
func UpdateHwPortConfig ¶
* * 更新接口参数 *
func UpdateIotSchemaProperty ¶ added in v0.6.6
更新属性
func UpdateUserLuaTemplate ¶
* * 更新用户模板 *
func UserLuaTemplateDetail ¶
* * 用户模板详情 *
func ValidateLuaSyntax ¶
* * 验证lua语法 *
Types ¶
type APNFormVo ¶
type APNFormVo struct { SenceId int `json:"senceId"` PTytpe int `json:"ptytpe"` Auth int `json:"auth"` CDMAPWD int `json:"cdmapwd"` APN string `json:"apn"` Username string `json:"apn_username"` Password string `json:"apn_password"` }
* * 设置APN *
ptype int, apn, username, password string, auth, cdmaPwd int
type DHCPVo ¶
type DHCPVo struct { Iface string `json:"iface" validate:"required"` // 用来做子网的那个网卡的网卡名 Ip string `json:"ip" validate:"required"` // 用来做子网的那个网卡的IP地址 Gateway string `json:"gateway" validate:"required"` // 用来做子网的那个网卡的网关 Network string `json:"network" validate:"required"` // 用来做子网的那个网卡的网段 Netmask string `json:"netmask" validate:"required"` // 用来做子网的那个网卡子网掩码 IpPoolBegin string `json:"ip_pool_begin" validate:"required"` // DHCP IP地址池起始 IpPoolEnd string `json:"ip_pool_end" validate:"required"` // DHCP IP地址池结束 //------------------------------------ // IP 路由方向, 默认 ETH1 透传到 4G //------------------------------------ IfaceFrom string `json:"iface_from" validate:"required"` // 流量入口,固定ETH1 IfaceTo string `json:"iface_to" validate:"required"` // 流量出口,固定4G }
* * DHCP 配置 *
type DevicePropertyVo ¶ added in v0.6.6
type DevicePropertyVo struct { Label string `json:"label"` // UI显示的那个文本 Name string `json:"name"` // 变量关联名 Description string `json:"description"` // 额外信息 Type string `json:"type"` // 类型, 只能是上面几种 Rw string `json:"rw"` // R读 W写 RW读写 Unit string `json:"unit"` // 单位 例如:摄氏度、米、牛等等 Value string `json:"value"` // 值 }
* * 属性 *
type DhcpLeaseVo ¶
type DhcpLeaseVo struct { MacAddress string `json:"mac_address"` // MAC地址 IpAddress string `json:"ip_address"` // IP地址 Hostname string `json:"hostname"` // 主机名 }
* * 获取当前在线的DHCP主机列表 *
type FlvStreamVo ¶ added in v0.6.7
type FlvStreamVo struct { Type string `json:"type"` // push | pull LiveId string `json:"liveId"` Pulled bool `json:"pulled"` Resolution utils.Resolution `json:"resolution"` }
type Hnc8PointVo ¶ added in v0.6.7
type Hnc8PointVo struct { UUID string `json:"uuid,omitempty"` DeviceUUID string `json:"device_uuid"` Name string `json:"name"` Alias string `json:"alias"` ApiFunction string `json:"apiFunction"` Group *int `json:"group"` Address string `json:"address"` Status int `json:"status"` // 运行时数据 LastFetchTime uint64 `json:"lastFetchTime"` // 运行时数据 Value string `json:"value"` // 运行时数据 }
type HwPortOccupyVo ¶
type HwPortVo ¶
type HwPortVo struct { UUID string `json:"uuid"` Name string `json:"name"` // 接口名称 Type string `json:"type"` // 接口类型, UART(串口),USB(USB),FD(通用文件句柄) Alias string `json:"alias"` // 别名 Config any `json:"config"` // 配置 Busy bool `json:"busy"` // 运行时数据,是否被占 OccupyBy HwPortOccupyVo `json:"occupyBy"` Description string `json:"description"` // 额外备注 }
type InternalNotifyVo ¶
type InternalNotifyVo struct { UUID string `json:"uuid"` // UUID Type string `json:"type"` // INFO | ERROR | WARNING Status int `json:"status"` // 1 未读 2 已读 Event string `json:"event"` // 字符串 Ts uint64 `json:"ts"` // 时间戳 Summary string `json:"summary"` // 概览,为了节省流量,在消息列表只显示这个字段,Info值为“” Info string `json:"info,omitempty"` // 消息内容,是个文本,详情显示 }
* * 内部事件 *
type IoTPropertyRuleVo ¶ added in v0.6.6
type IoTPropertyRuleVo struct { DefaultValue any `json:"defaultValue"` // 默认值 Max *int `json:"max"` // 最大值 Min *int `json:"min"` // 最小值 TrueLabel string `json:"trueLabel"` // 真值label FalseLabel string `json:"falseLabel"` // 假值label Round *int `json:"round"` // 小数点位 }
func (IoTPropertyRuleVo) IoTPropertyRuleFromString ¶ added in v0.6.6
func (O IoTPropertyRuleVo) IoTPropertyRuleFromString(s string) error
* * 从数据库反解析 *
func (*IoTPropertyRuleVo) ParseRuleFromModel ¶ added in v0.6.6
func (P *IoTPropertyRuleVo) ParseRuleFromModel(s string) error
* * 从数据库保存的String字符串反解析规则 *
func (IoTPropertyRuleVo) String ¶ added in v0.6.6
func (O IoTPropertyRuleVo) String() string
* * 属性 *
type IoTSchemaVo ¶ added in v0.6.6
type IoTSchemaVo struct { UUID string `json:"uuid,omitempty"` Name string `json:"name"` Description string `json:"description"` }
* * 新建模型 *
type IotPropertyVo ¶ added in v0.6.6
type IotPropertyVo struct { UUID string `json:"uuid"` // UUID SchemaId string `json:"schemaId"` //模型ID Label string `json:"label"` // UI显示的那个文本 Name string `json:"name"` // 变量关联名 Description string `json:"description"` // 额外信息 Type string `json:"type"` // 类型, 只能是上面几种 Rw string `json:"rw"` // R读 W写 RW读写 Unit string `json:"unit"` // 单位 例如:摄氏度、米、牛等等 Rule IoTPropertyRuleVo `json:"rule"` // 规则,IoTPropertyRule }
* * 属性 *
type IpRouteVo ¶
type IpRouteVo struct { UUID string `json:"uuid"` Ip string `json:"ip" validate:"required"` Iface string `json:"iface" validate:"required"` }
*
- 更新默认路由 1 取上一次的路由 2 配置最新的 4 删除上一次的 5 更新最新的路由
*
type JpegStreamVo ¶ added in v0.6.7
type JpegStreamVo struct { Type string `json:"type"` // push | pull LiveId string `json:"liveId"` Pulled bool `json:"pulled"` Resolution utils.Resolution `json:"resolution"` }
type MGenericGroupRelationVo ¶
type MGenericGroupVo ¶
type ModbusPointVo ¶
type ModbusPointVo struct { UUID string `json:"uuid,omitempty"` DeviceUUID string `json:"device_uuid"` Tag string `json:"tag"` Alias string `json:"alias"` Function *int `json:"function"` SlaverId *byte `json:"slaverId"` Address *uint16 `json:"address"` Frequency *int64 `json:"frequency"` Quantity *uint16 `json:"quantity"` Type string `json:"type"` // 数据类型 Order string `json:"order"` // 字节序 Weight *float64 `json:"weight"` // 权重 Status int `json:"status"` // 运行时数据 LastFetchTime uint64 `json:"lastFetchTime"` // 运行时数据 Value string `json:"value"` // 运行时数据 }
type RulexResource ¶ added in v0.6.7
* * 给前端快速查询当前系统内的资源 *
type SiemensPointVo ¶
type SiemensPointVo struct { UUID string `json:"uuid"` DeviceUUID string `json:"device_uuid"` SiemensAddress string `json:"siemensAddress"` // 西门子的地址字符串 Tag string `json:"tag"` Alias string `json:"alias"` DataOrder string `json:"dataOrder"` // 字节序 DataType string `json:"dataType"` Frequency *int64 `json:"frequency"` Weight *float64 `json:"weight"` // 权重 Status int `json:"status"` // 运行时数据 LastFetchTime uint64 `json:"lastFetchTime"` // 运行时数据 Value string `json:"value"` // 运行时数据 }
type SiteConfigVo ¶
type UartConfigVo ¶
type UartConfigVo struct { Timeout int `json:"timeout"` Uart string `json:"uart"` BaudRate int `json:"baudRate"` DataBits int `json:"dataBits"` Parity string `json:"parity"` StopBits int `json:"stopBits"` }
func (UartConfigVo) JsonString ¶
func (u UartConfigVo) JsonString() string
type UserLuaTemplateVo ¶
type UserLuaTemplateVo struct { Gid string `json:"gid,omitempty"` // 分组ID UUID string `json:"uuid,omitempty"` // 名称 Label string `json:"label"` // 快捷代码名称 Apply string `json:"apply"` // 快捷代码 Type string `json:"type"` // 类型 固定为function类型detail Detail string `json:"detail"` // 细节 Variables []dto.LuaTemplateVariables `json:"variables"` // 变量 }
Source Files ¶
- aibase_api.go
- appstack_api.go
- crontask_api.go
- crontaskresult_api.go
- datacenter_api.go
- dataschema_api.go
- device_api.go
- device_hnc8_data_sheet_api.go
- device_modbus_data_sheet_api.go
- device_s1200_data_sheet_api.go
- group_api.go
- hw_port_api.go
- inend_api.go
- internal_notify_api.go
- jpeg_stream_api.go
- outend_api.go
- plugin_api.go
- protocolapp_api.go
- rhinoh3_firmware_api.go
- rhinoh3_iproute_api.go
- rhinopi_4g_api.go
- rhinopi_wifi_api.go
- rtsp_stream_api.go
- rule_api.go
- site_config_api.go
- sysconfig_backup_api.go
- system_api.go
- system_config_api_linux.go
- system_firmware_api.go
- system_settings_linux.go
- trailer_api.go
- user_api.go
- user_lua_template_api.go
- vendor_security_api.go
- visual_api.go
- wsflv_stream_api.go