Versions in this module Expand all Collapse all v1 v1.0.6 Nov 23, 2020 Changes in this version + type CreatePullPointSubscriptionResponse struct + CurrentTime string + SubscriptionReference SubscriptionReference + TerminationTime string type Device + func (device Device) CreatePullPointSubscription() (CreatePullPointSubscriptionResponse, error) + func (device Device) GetEventProperties() (interface{}, error) + func (device Device) GetOSDs() ([]AudioEncoderConfigurationOption, error) + func (device Device) PullMessages(address string) ([]NotificationMessage, error) + type MessageData struct + Name string + Value string + type NotificationMessage struct + Data []MessageData + Source []MessageData + Topic string + UtcTime string + type SubscriptionReference struct + Address string v1.0.3 Jun 12, 2020 v1.0.2 Feb 14, 2020 v1.0.1 Feb 14, 2020 v1.0.0 Dec 13, 2019 Changes in this version + func CheckAuthorizedError(msg string) bool + type AudioEncoderConfig struct + Bitrate int + Encoding string + Name string + SampleRate int + SessionTimeout string + Token string + type AudioEncoderConfigurationOption struct + BitrateList int + Encoding string + SampleRateList int + type AudioSource struct + Channels int + Token string + type AudioSourceConfiguration struct + Name string + SourceToken string + Token string + type BacklightCompensation struct + Level float64 + Mode string + type CapabilitiesService struct + Capabilities interface{} + Name string + type DNSInformation struct + DNSAddress IPAddress + FromDHCP bool + SearchDomain string + type Date struct + Day int + Month int + Year int + type Device struct + ID string + Name string + Password string + User string + XAddr string + func StartDiscovery(interfaceName string, duration time.Duration) ([]Device, error) + func StartDiscoveryOn(interfaceName string, duration time.Duration) ([]Device, error) + func (device Device) AbsoluteMove(profileToken string, position PTZVector) error + func (device Device) AddScopes(listScopes []string) error + func (device Device) ContinuousMove(profileToken string, velocity PTZVector) error + func (device Device) CreateProfile(profileName string, profileToken string) (MediaProfile, error) + func (device Device) CreateUsers(users []User) error + func (device Device) DeleteProfile(profileToken string) error + func (device Device) DeleteUsers(usernames []string) error + func (device Device) GetAudioEncoderConfiguration(configurationToken string) (AudioEncoderConfig, error) + func (device Device) GetAudioEncoderConfigurationOptions(configurationToken string, profileToken string) ([]AudioEncoderConfigurationOption, error) + func (device Device) GetAudioEncoderConfigurations() ([]AudioEncoderConfig, error) + func (device Device) GetAudioSourceConfiguration(configurationToken string) (AudioSourceConfiguration, error) + func (device Device) GetAudioSourceConfigurationOptions(configurationToken string, profileToken string) (string, error) + func (device Device) GetAudioSourceConfigurations() ([]AudioSourceConfiguration, error) + func (device Device) GetAudioSources() ([]AudioSource, error) + func (device Device) GetCapabilities() (DeviceCapabilities, error) + func (device Device) GetCompatibleAudioEncoderConfigurations(profileToken string) ([]AudioEncoderConfig, error) + func (device Device) GetCompatibleAudioSourceConfigurations(profileToken string) ([]AudioSourceConfiguration, error) + func (device Device) GetCompatibleMetadataConfigurations(profileToken string) ([]MetadataConfiguration, error) + func (device Device) GetCompatibleVideoEncoderConfigurations(profileToken string) ([]VideoEncoderConfig, error) + func (device Device) GetCompatibleVideoSourceConfigurations(profileToken string) ([]VideoSourceConfiguration, error) + func (device Device) GetConfiguration(ptzConfigurationToken string) (PTZConfiguration, error) + func (device Device) GetConfigurationOptions(configurationToken string) (PTZConfigurationOptions, error) + func (device Device) GetConfigurations() ([]PTZConfiguration, error) + func (device Device) GetDNS() (DNSInformation, error) + func (device Device) GetDiscoveryMode() (string, error) + func (device Device) GetDynamicDNS() (DynamicDNSInformation, error) + func (device Device) GetGuaranteedNumberOfVideoEncoderInstances(configurationToken string) (GuaranteedNumberOfVideoEncoderInstances, error) + func (device Device) GetHostname() (HostnameInformation, error) + func (device Device) GetInformation() (DeviceInformation, error) + func (device Device) GetMetadataConfiguration(configurationToken string) (MetadataConfiguration, error) + func (device Device) GetMetadataConfigurationOptions(configurationToken string, profileToken string) (MetadataConfigurationOptions, error) + func (device Device) GetMetadataConfigurations() ([]MetadataConfiguration, error) + func (device Device) GetNTP() (NTPInformation, error) + func (device Device) GetNetworkDefaultGateway() (NetworkGateway, error) + func (device Device) GetNetworkInterfaces() (NetworkInterfaces, error) + func (device Device) GetNetworkProtocols() ([]NetworkProtocol, error) + func (device Device) GetNode(nodeToken string) (PTZNode, error) + func (device Device) GetNodes() ([]PTZNode, error) + func (device Device) GetPresets(profileToken string) ([]PTZPreset, error) + func (device Device) GetProfileMedia(profileToken string) (MediaProfile, error) + func (device Device) GetProfiles() ([]MediaProfile, error) + func (device Device) GetRelayOutputs() (RelayOutput, error) + func (device Device) GetScopes() ([]string, error) + func (device Device) GetServiceCapabilities() ([]Service, error) + func (device Device) GetServices() ([]Service, error) + func (device Device) GetSnapshot(profileToken string) (string, error) + func (device Device) GetStatus(profileToken string) (PTZStatus, error) + func (device Device) GetStreamURI(profileToken, protocol string) (MediaURI, error) + func (device Device) GetSystemDateAndTime() (SystemDateAndTime, error) + func (device Device) GetUsers() ([]User, error) + func (device Device) GetVideoEncoderConfigurationOptions(configurationToken string, profileToken string) (VideoEncoderConfigurationOptions, error) + func (device Device) GetVideoEncoderConfigurations() ([]VideoEncoderConfig, error) + func (device Device) GetVideoSourceConfiguration(configurationToken string) (VideoSourceConfiguration, error) + func (device Device) GetVideoSourceConfigurationOptions(configurationToken string, profileToken string) (VideoSourceConfigurationOption, error) + func (device Device) GetVideoSourceConfigurations() ([]VideoSourceConfiguration, error) + func (device Device) GetVideoSources() ([]VideoSource, error) + func (device Device) GetZeroConfiguration() (NetworkZeroConfiguration, error) + func (device Device) GotoHomePosition(profileToken string) error + func (device Device) GotoPreset(profileToken string, presetToken string) error + func (device Device) RelativeMove(profileToken string, translation PTZVector) error + func (device Device) RemovePreset(profileToken string, presetToken string) error + func (device Device) RemoveScopes(listScopes []string) ([]string, error) + func (device Device) SetDNS(dnsInformation DNSInformation) error + func (device Device) SetHomePosition(profileToken string) error + func (device Device) SetHostName(nameToken string) error + func (device Device) SetNTP(ntpInformation NTPInformation) error + func (device Device) SetNetworkDefaultGateway(defaultGateway NetworkGateway) error + func (device Device) SetNetworkProtocols(protocols []NetworkProtocol) error + func (device Device) SetPreset(profileToken string, presetName string) (string, error) + func (device Device) SetScopes(listScopes []string) error + func (device Device) SetSystemDateAndTime(systemDT SystemDateAndTime) error + func (device Device) SetUser(user User) error + func (device Device) SetVideoEncoderConfiguration(profile MediaProfile) error + func (device Device) Stop(profileToken string) error + func (device Device) Subscribe(address string) (string, error) + func (device Device) SystemReboot() (string, error) + func (device Device) UnSubscribe(address string) error + type DeviceCapabilities struct + EventsCap EventsCapabilities + Media MediaCapabilities + Network NetworkCapabilities + Ptz PTZCapabilities + Streaming map[string]bool + type DeviceCapabilitiesService struct + Network DeviceNetworkCapabilitiesService + Security DeviceSecurityCapabilitiesService + System DeviceSystemCapabilitiesService + type DeviceInformation struct + FirmwareVersion string + HardwareID string + Manufacturer string + Model string + SerialNumber string + type DeviceNetworkCapabilitiesService struct + DynDNS bool + IPFilter bool + IPVersion6 bool + NTP int + ZeroConfiguration bool + type DeviceSecurityCapabilitiesService struct + AccesssPolicyConfig bool + DefaultAccessPolicy bool + Dot1X bool + HttpDigest bool + KerberosToken bool + OnboardKeyGeneration bool + RELToken bool + RemoteUserHandling bool + SAMLToken bool + TLS10 bool + TLS11 bool + TLS12 bool + UsernameToken bool + X509Token bool + type DeviceSystemCapabilitiesService struct + DiscoveryBye bool + DiscoveryResolve bool + FirmwareUpgrade bool + RemoteDiscovery bool + SystemBackup bool + SystemLogging bool + type DurationRange struct + Max string + Min string + type DynamicDNSInformation struct + Name string + TTL string + Type string + type EventsCapabilities struct + Events map[string]bool + XAddr string + type EventsCapabilitiesService struct + MaxNotificationProducers int + MaxPullPoints int + PersistentNotificationStorage bool + WSPausableSubscriptionManagerInterfaceSupport bool + WSPullPointSupport bool + WSSubscriptionPolicySupport bool + type Exposure struct + ExposureTime float64 + Gain float64 + Iris float64 + MaxExposureTime float64 + MaxGain float64 + MaxIris float64 + MinExposureTime float64 + MinGain float64 + MinIris float64 + Mode string + Priority string + Window Rectangle + type FloatRange struct + Max float64 + Min float64 + type FocusConfiguration struct + AutoFocusMode string + DefaultSpeed float64 + FarLimit float64 + NearLimit float64 + type GuaranteedNumberOfVideoEncoderInstances struct + H264 int + TotalNumber int + type H264Configuration struct + GovLength int + H264Profile string + type H264Options struct + EncodingIntervalRange IntRange + FrameRateRange IntRange + GovLengthRange IntRange + H264ProfilesSupported []string + ResolutionsAvailable MediaBounds + type HostnameInformation struct + FromDHCP bool + Name string + type IPAddress struct + IPv4Address string + Type string + type IPv4Configuration struct + DHCP bool + FromDHCP PrefixedIPAdress + LinkLocal PrefixedIPAdress + Manual PrefixedIPAdress + type IPv4NetworkInterface struct + Config IPv4Configuration + Enabled bool + type ImagingCapabilitiesService struct + ImageStabilization bool + type ImagingSettings struct + BacklightCompensation BacklightCompensation + Brightness float64 + ColorSaturation float64 + Contrast float64 + Exposure Exposure + Focus FocusConfiguration + IrCutFilter string + Sharpness float64 + WhiteBalance WhiteBalance + WideDynamicRange WideDynamicRange + type IntRange struct + Max int + Min int + type IntRectangle struct + Height int + Width int + X int + Y int + type IntRectangleRange struct + HeightRange IntRange + WidthRange IntRange + XRange IntRange + YRange IntRange + type MediaBounds struct + Height int + Width int + type MediaCapabilities struct + XAddr string + type MediaCapabilitiesService struct + OSD bool + ProfileCapabilities MediaProfileCapabilitiesService + Rotation bool + SnapshotUri bool + StreamingCapabilities MediaStreamingCapabilitiesService + VideoSourceMode bool + type MediaProfile struct + AudioEncoderConfig AudioEncoderConfig + AudioSourceConfig MediaSourceConfig + Name string + PTZConfig PTZConfig + Token string + VideoEncoderConfig VideoEncoderConfig + VideoSourceConfig MediaSourceConfig + type MediaProfileCapabilitiesService struct + MaximumNumberOfProfiles int + type MediaSourceConfig struct + Bounds MediaBounds + Name string + SourceToken string + Token string + type MediaStreamingCapabilitiesService struct + NoRTSPStreaming bool + NonAggregateControl bool + RTPMulticast bool + RTP_RTSP_TCP bool + RTP_TCP bool + type MediaURI struct + InvalidAfterConnect bool + InvalidAfterReboot bool + Timeout string + URI string + type MetadataConfiguration struct + Multicast Multicast + Name string + SessionTimeout string + Token string + type MetadataConfigurationOptions struct + GeoLocation bool + PTZStatusFilterOptions PTZStatusFilterOptions + type MoveStatus struct + PanTilt string + Zoom string + type Multicast struct + Address IPAddress + AutoStart bool + Port int + TTL int + type NTPInformation struct + FromDHCP bool + NTPNetworkHost NetworkHost + type NetworkCapabilities struct + DynDNS bool + IPFilter bool + IPVersion6 bool + ZeroConfig bool + type NetworkGateway struct + IPv4Address string + type NetworkHost struct + DNSname string + IPv4Address string + Type string + type NetworkInterface struct + Enabled bool + IPv4 IPv4NetworkInterface + Info NetworkInterfaceInfo + Link NetworkInterfaceLink + Token string + type NetworkInterfaceConnectionSetting struct + AutoNegotiation bool + Duplex string + Speed int + type NetworkInterfaceInfo struct + HwAddress string + MTU int + Name string + type NetworkInterfaceLink struct + AdminSettings NetworkInterfaceConnectionSetting + InterfaceType string + OperSettings NetworkInterfaceConnectionSetting + type NetworkInterfaces struct + type NetworkProtocol struct + Enabled bool + Name string + Port int + type NetworkZeroConfiguration struct + Addresses []string + Enabled bool + InterfaceToken string + type OnvifVersion struct + Major int + Minor int + type Options struct + Mode string + type PTControlDirection struct + EFlip Options + Reverse Options + type PTZCapabilities struct + XAddr string + type PTZCapabilitiesService struct + EFlip bool + GetCompatibleConfigurations bool + Reverse bool + type PTZConfig struct + Name string + NodeToken string + Token string + type PTZConfiguration struct + DefaultAbsolutePantTiltPositionSpace string + DefaultAbsoluteZoomPositionSpace string + DefaultContinuousPanTiltVelocitySpace string + DefaultContinuousZoomVelocitySpace string + DefaultPTZSpeed PTZVector + DefaultPTZTimeout string + DefaultRelativePanTiltTranslationSpace string + DefaultRelativeZoomTranslationSpace string + MoveRamp int + Name string + NodeToken string + PanTiltLimits PanTiltLimits + PresetRamp int + PresetTourRamp int + Token string + ZoomLimits ZoomLimits + type PTZConfigurationOptions struct + PTControlDirection PTControlDirection + PTZTimeout DurationRange + Spaces PTZSpaces + type PTZNode struct + FixedHomePosition bool + GeoMove bool + HomeSupported bool + MaximumNumberOfPresets int + Name string + SupportedPTZSpaces PTZSpaces + Token string + type PTZPreset struct + Name string + PTZPosition PTZVector + Token string + type PTZSpaces struct + AbsolutePanTiltPositionSpace Space2DDescription + AbsoluteZoomPositionSpace Space1DDescription + ContinuousPanTiltVelocitySpace Space2DDescription + ContinuousZoomVelocitySpace Space1DDescription + PanTiltSpeedSpace Space1DDescription + RelativePanTiltTranslationSpace Space2DDescription + RelativeZoomTranslationSpace Space1DDescription + ZoomSpeedSpace Space1DDescription + type PTZStatus struct + MoveStatus MoveStatus + Position PTZVector + UtcTime string + type PTZStatusFilterOptions struct + PanTiltPositionSupported bool + PanTiltStatusSupported bool + ZoomPositionSupported bool + ZoomStatusSupported bool + type PTZVector struct + PanTilt Vector2D + Zoom Vector1D + type PanTiltLimits struct + Range Space2DDescription + type PrefixedIPAdress struct + Address string + PrefixLength int + type Rectangle struct + Bottom int + Left int + Right int + Top int + type RelayOutput struct + Properties RelayOutputSettings + Token string + type RelayOutputSettings struct + DelayTime string + IdleState string + Mode string + type SOAP struct + Action string + Body string + Password string + TokenAge time.Duration + User string + XMLNs []string + func (soap SOAP) SendRequest(xaddr string) (mxj.Map, error) + type Scope struct + ScopeDes string + ScopeItem string + type Service struct + Capabilities CapabilitiesService + Namespace string + Version OnvifVersion + XAddr string + type Space1DDescription struct + URI string + XRange FloatRange + type Space2DDescription struct + URI string + XRange FloatRange + YRange FloatRange + type SystemDateAndTime struct + DateTimeType string + DaylightSavings bool + type Time struct + Hour int + Minute int + Second int + type TimeZone struct + TZ string + type UTCDateTime struct + type User struct + Password string + UserLevel string + Username string + type Vector1D struct + Space string + X float64 + type Vector2D struct + Space string + X float64 + Y float64 + type VideoEncoderConfig struct + Encoding string + H264 H264Configuration + Multicast Multicast + Name string + Quality float64 + RateControl VideoRateControl + Resolution MediaBounds + SessionTimeout string + Token string + type VideoEncoderConfigurationOptions struct + H264 H264Options + QualityRange IntRange + type VideoRateControl struct + BitrateLimit int + EncodingInterval int + FrameRateLimit int + type VideoSource struct + Framerate float64 + Imaging ImagingSettings + Resolution MediaBounds + Token string + type VideoSourceConfiguration struct + Bounds IntRectangle + Name string + SourceToken string + Token string + type VideoSourceConfigurationOption struct + BoundsRange IntRectangleRange + MaximumNumberOfProfiles int + VideoSourceTokensAvailable string + type WhiteBalance struct + CbGain float64 + CrGain float64 + Mode string + type WideDynamicRange struct + Level float64 + Mode string + type ZoomLimits struct + Range Space1DDescription