Documentation ¶
Overview ¶
Package onvif is developed to provide an ONVIF client implementation on Go programming language
Index ¶
- Variables
- type Device
- func (dev Device) CallMethod(method interface{}) (*http.Response, error)
- func (dev Device) CallMethodEx(method interface{}) (networking.RestResponse, string)
- func (dev *Device) GetDeviceInfo() DeviceInfo
- func (dev *Device) GetDeviceParams() DeviceParams
- func (dev *Device) GetEndpoint(name string) string
- func (dev *Device) GetServices() map[string]string
- func (dev *Device) SetDeviceParams(param DeviceParams)
- func (dev *Device) SetUseWSUsernameToken(param int)
- type DeviceInfo
- type DeviceParams
- type DeviceType
Constants ¶
This section is empty.
Variables ¶
var NamespaceForPkg = map[string]string{
"http://www.onvif.org/ver10/device/wsdl": "device",
"http://www.onvif.org/ver10/media/wsdl": "media",
"http://www.onvif.org/ver10/events/wsdl": "event",
"http://www.onvif.org/ver20/ptz/wsdl": "ptz",
"http://www.onvif.org/ver20/imaging/wsdl": "imaging",
"http://www.onvif.org/ver20/analytics/wsdl": "analytics",
"http://www.onvif.org/ver10/search/wsdl": "search",
"http://www.onvif.org/ver10/replay/wsdl": "replay",
"http://www.onvif.org/ver10/recording/wsdl": "recording",
}
var Xlmns = map[string]string{
"onvif": "http://www.onvif.org/ver10/schema",
"tds": "http://www.onvif.org/ver10/device/wsdl",
"trt": "http://www.onvif.org/ver10/media/wsdl",
"tev": "http://www.onvif.org/ver10/events/wsdl",
"tptz": "http://www.onvif.org/ver20/ptz/wsdl",
"timg": "http://www.onvif.org/ver20/imaging/wsdl",
"tan": "http://www.onvif.org/ver20/analytics/wsdl",
"xmime": "http://www.w3.org/2005/05/xmlmime",
"wsnt": "http://docs.oasis-open.org/wsn/b-2",
"xop": "http://www.w3.org/2004/08/xop/include",
"wsa": "http://www.w3.org/2005/08/addressing",
"wstop": "http://docs.oasis-open.org/wsn/t-1",
"wsntw": "http://docs.oasis-open.org/wsn/bw-2",
"wsrf-rw": "http://docs.oasis-open.org/wsrf/rw-2",
"wsaw": "http://www.w3.org/2006/05/addressing/wsdl",
"tse": "http://www.onvif.org/ver10/search/wsdl",
"trp1": "http://www.onvif.org/ver10/replay/wsdl",
"trc": "http://www.onvif.org/ver10/recording/wsdl",
}
Xlmns XML Scheam
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct {
// contains filtered or unexported fields
}
Device for a new device of onvif and DeviceInfo struct represents an abstract ONVIF device. It contains methods, which helps to communicate with ONVIF device
func GetAvailableDevicesAtSpecificEthernetInterface ¶
GetAvailableDevicesAtSpecificEthernetInterface ...
func GetAvailableDevicesAtSpecificEthernetInterfaceEx ¶ added in v0.1.0
GetAvailableDevicesAtSpecificEthernetInterface ...
func NewDevice ¶
func NewDevice(params DeviceParams) (*Device, error)
NewDevice function construct a ONVIF Device entity
func NewDevice2 ¶
func NewDevice2(params DeviceParams) (*Device, error)
func (Device) CallMethod ¶
CallMethod functions call an method, defined <method> struct. You should use Authenticate method to call authorized requests.
func (Device) CallMethodEx ¶ added in v0.1.2
func (dev Device) CallMethodEx(method interface{}) (networking.RestResponse, string)
CallMethod functions call an method, defined <method> struct. You should use Authenticate method to call authorized requests.
func (*Device) GetDeviceInfo ¶
func (dev *Device) GetDeviceInfo() DeviceInfo
GetServices return available endpoints
func (*Device) GetDeviceParams ¶
func (dev *Device) GetDeviceParams() DeviceParams
GetServices return DeviceParams
func (*Device) GetEndpoint ¶
GetEndpoint returns specific ONVIF service endpoint address
func (*Device) GetServices ¶
GetServices return available endpoints
func (*Device) SetDeviceParams ¶ added in v0.1.7
func (dev *Device) SetDeviceParams(param DeviceParams)
func (*Device) SetUseWSUsernameToken ¶ added in v0.1.0
GetServices return DeviceParams
type DeviceInfo ¶
type DeviceInfo struct { Manufacturer string Model string FirmwareVersion string SerialNumber string HardwareId string }
DeviceInfo struct contains general information about ONVIF device
type DeviceParams ¶
type DeviceType ¶
type DeviceType int
DeviceType alias for int
const ( NVD DeviceType = iota NVS NVA NVT )
Onvif Device Tyoe
func (DeviceType) String ¶
func (devType DeviceType) String() string