Documentation ¶
Overview ¶
package goonvif is developed to provide an ONVIF client implementation on Go programming language
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Xlmns = map[string]string{
"onvif": "http://www.onvif.org/ver10/schema",
"tds": "http://www.onvif.org/ver10/OnvifDevice/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",
}
Functions ¶
This section is empty.
Types ¶
type DeviceType ¶
type DeviceType int
const ( NVD DeviceType = iota NVS NVA NVT )
func (DeviceType) String ¶
func (devType DeviceType) String() string
type OnvifDevice ¶
type OnvifDevice struct {
// contains filtered or unexported fields
}
deviceInfo struct represents an abstract ONVIF OnvifDevice. It contains methods, which helps to communicate with ONVIF OnvifDevice
func GetAvailableDevicesAtSpecificEthernetInterface ¶
func GetAvailableDevicesAtSpecificEthernetInterface(interfaceName string) []OnvifDevice
func NewDevice ¶
func NewDevice(xaddr string) (*OnvifDevice, error)
NewDevice function construct a ONVIF Device entity
func (*OnvifDevice) Authenticate ¶
func (dev *OnvifDevice) Authenticate(username, password string)
Authenticate function authenticate client in the ONVIF Device. Function takes <username> and <password> params. You should use this function to allow authorized requests to the ONVIF Device To change auth data call this function again.
func (OnvifDevice) CallMethod ¶
func (dev OnvifDevice) CallMethod(method interface{}) (*http.Response, error)
CallMethod functions call an method, defined <method> struct. You should use Authenticate method to call authorized requests.
func (*OnvifDevice) GetEndpoint ¶
func (dev *OnvifDevice) GetEndpoint(name string) string
GetEndpoint returns specific ONVIF service endpoint address
func (*OnvifDevice) GetServices ¶
func (dev *OnvifDevice) GetServices() map[string]string