hikvision

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: GPL-3.0 Imports: 11 Imported by: 0

README

功能说明

hikvision封装了海康威视的ISAPI中,最基础的登录过程。

登录后,更多的具体业务ISAPI接口,需要凭自己公司的营业执照,去海康的网站进行申请接口文档,即可获得。

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Client clientManager
	ISAPI  isApi
)

Functions

func GET

func GET(host, res string) ([]byte, error)

func POST

func POST(host, res string, body []byte) ([]byte, error)

Types

type AIDEventSupport

type AIDEventSupport struct {
	Opt   string `xml:"opt,attr"`
	Value string `xml:",chardata"`
}

type DeviceCap

type DeviceCap struct {
	XMLName                                 xml.Name                    `xml:"DeviceCap"`
	Version                                 string                      `xml:"version,attr"`
	Xmlns                                   string                      `xml:"xmlns,attr"`
	IsSupportPreview                        bool                        `xml:"isSupportPreview"`
	IsSupportSystemMaintain                 bool                        `xml:"isSupportSystemMaintain"`
	IsSupportReboot                         bool                        `xml:"isSupportReboot"`
	IsSupportFactoryReset                   bool                        `xml:"isSupportFactoryReset"`
	IsSupportConfigurationData              bool                        `xml:"isSupportConfigurationData"`
	IsSupportUpdatefirmware                 bool                        `xml:"isSupportUpdatefirmware"`
	IsSupportDeviceInfo                     bool                        `xml:"isSupportDeviceInfo"`
	IsSupportTime                           bool                        `xml:"isSupportTime"`
	SysCap                                  SysCap                      `xml:"SysCap"`
	ITCCap                                  ITCCap                      `xml:"ITCCap"`
	IsSupportDumpData                       bool                        `xml:"isSupportDumpData"`
	AIDEventSupport                         AIDEventSupport             `xml:"AIDEventSupport"`
	IsVehicleStatisticsSupport              bool                        `xml:"isVehicleStatisticsSupport"`
	IsSupportVehicleFaceRecognition         bool                        `xml:"isSupportVehicleFaceRecognition"`
	IsSupportVehicleIllegalType             IsSupportVehicleIllegalType `xml:"isSupportVehicleIllegalType"`
	IsSupportRadarVideoDetection            bool                        `xml:"isSupportRadarVideoDetection"`
	IsSupportRadar                          bool                        `xml:"isSupportRadar"`
	DeviceReboot                            DeviceReboot                `xml:"deviceReboot"`
	FactoryReset                            FactoryReset                `xml:"factoryReset"`
	OpenPlatformCap                         OpenPlatformCap             `xml:"OpenPlatformCap"`
	IsSupportDrivingDirectionAtIntersection bool                        `xml:"isSupportDrivingDirectionAtIntersection"`
	IsSupportLCDScreen                      bool                        `xml:"isSupportLCDScreen"`
	SupportQuickConfigType                  SupportQuickConfigType      `xml:"supportQuickConfigType"`
	IsSupportRTMP                           bool                        `xml:"isSupportRTMP"`
	VideoIntercomCap                        VideoIntercomCap            `xml:"VideoIntercomCap"`
	IsSupportISUPHttpPassthrough            bool                        `xml:"isSupportISUPHttpPassthrough"`
	IsSupportDetectorMotionAlarm            bool                        `xml:"isSupportDetectorMotionAlarm"`
	IsSupportOnlineUpgradeTask              bool                        `xml:"isSupportOnlineUpgradeTask"`
	IsSupportPowerIndicatorLightCtrlParams  bool                        `xml:"isSupportPowerIndicatorLightCtrlParams"`
	IsSupportEmmcInfo                       bool                        `xml:"isSupportEmmcInfo"`
}

type DeviceReboot

type DeviceReboot struct {
	Module Module `xml:"module"`
}

type FactoryReset

type FactoryReset struct {
	Module Module `xml:"module"`
}

type ITCCap

type ITCCap struct {
	IsSupportVehicleDetection      bool `xml:"isSupportVehicleDetection"`
	IsSupportSyncSignalOutput      bool `xml:"isSupportSyncSignalOutput"`
	IsSupportLicencePlateAuditData bool `xml:"isSupportlicencePlateAuditData"`
}

type IsSupportVehicleIllegalType

type IsSupportVehicleIllegalType struct {
	Opt string `xml:"opt,attr"`
}

type Module

type Module struct {
	Opt   string `xml:"opt,attr"`
	Value string `xml:",chardata"`
}

type NetworkCap

type NetworkCap struct {
	IsSupportGetLinkSocketIP        bool                         `xml:"isSupportGetLinkSocketIP"`
	IsSupportWireless               bool                         `xml:"isSupportWireless"`
	IsSupportPPPoE                  bool                         `xml:"isSupportPPPoE"`
	IsSupportBond                   bool                         `xml:"isSupportBond"`
	IsSupport802_1x                 bool                         `xml:"isSupport802_1x"`
	IsSupportNtp                    bool                         `xml:"isSupportNtp"`
	IsSupportFtp                    bool                         `xml:"isSupportFtp"`
	IsSupportUpnp                   bool                         `xml:"isSupportUpnp"`
	IsSupportDdns                   bool                         `xml:"isSupportDdns"`
	IsSupportHttps                  bool                         `xml:"isSupportHttps"`
	IsSupport28181                  bool                         `xml:"isSupport28181"`
	IsSupportWebSocket              bool                         `xml:"isSupportWebSocket"`
	IsSupportWebSocketS             bool                         `xml:"isSupportWebSocketS"`
	IsSupportEventDataOverWebSocket bool                         `xml:"isSupportEventDataOverWebSocket"`
	IsSupportTSOverWebSocket        bool                         `xml:"isSupportTSOverWebSocket"`
	SnmpCap                         SnmpCap                      `xml:"SnmpCap"`
	IsSupportIPFilter               bool                         `xml:"isSupportIPFilter"`
	IsSupportEhome                  bool                         `xml:"isSupportEhome"`
	IsSupportWirelessDial           bool                         `xml:"isSupportWirelessDial"`
	IsSupportWifiProbe              bool                         `xml:"isSupportWifiProbe"`
	IsSupportPingDeny               bool                         `xml:"isSupportPingDeny"`
	IsSupportClusterIntercom        bool                         `xml:"isSupportClusterIntercom"`
	VerificationCodeModification    VerificationCodeModification `xml:"VerificationCodeModification"`
}

type OpenPlatformCap

type OpenPlatformCap struct {
	IsSupportOpenPlatform bool `xml:"isSupportOpenPlatform"`
	MaxAPPNum             int  `xml:"maxAPPNum"`
}

type RS485WorkMode

type RS485WorkMode struct {
	Opt   string `xml:"opt,attr"`
	Value string `xml:",chardata"`
}

type SerialCap

type SerialCap struct {
	RS485PortNums      int           `xml:"rs485PortNums"`
	SupportRS232Config bool          `xml:"supportRS232Config"`
	RS422PortNums      int           `xml:"rs422PortNums"`
	RS232PortNums      int           `xml:"rs232PortNums"`
	RS485WorkMode      RS485WorkMode `xml:"rs485WorkMode"`
}

type SnmpCap

type SnmpCap struct {
	IsSupport bool `xml:"isSupport"`
}

type SupportQuickConfigType

type SupportQuickConfigType struct {
	Opt string `xml:"opt,attr"`
}

type SysCap

type SysCap struct {
	NetworkCap                NetworkCap `xml:"NetworkCap"`
	SerialCap                 SerialCap  `xml:"SerialCap"`
	IsSupportSubscribeEvent   bool       `xml:"isSupportSubscribeEvent"`
	IsSupportSubscribeIOTInfo bool       `xml:"isSupportSubscribeIOTInfo"`
}

type UserCheck

type UserCheck struct {
	XMLName           xml.Name `xml:"userCheck"`
	Version           string   `xml:"version,attr"`
	Xmlns             string   `xml:"xmlns,attr"`
	StatusValue       int      `xml:"statusValue"`
	StatusString      string   `xml:"statusString"`
	IsDefaultPassword bool     `xml:"isDefaultPassword"`
	IsRiskPassword    bool     `xml:"isRiskPassword"`
	IsActivated       bool     `xml:"isActivated"`
	LockStatus        string   `xml:"lockStatus"`
	UnlockTime        int      `xml:"unlockTime"`
	RetryLoginTime    int      `xml:"retryLoginTime"`
}

type VerificationCodeModification

type VerificationCodeModification struct {
	VerificationCodeType string `xml:"verificationCodeType"`
}

type VideoIntercomCap

type VideoIntercomCap struct {
	Platform string `xml:"platform"`
}

Jump to

Keyboard shortcuts

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