Documentation
¶
Index ¶
- func CheckAuthorizedError(msg string) bool
- type AudioEncoderConfig
- type AudioEncoderConfigurationOption
- type AudioSource
- type AudioSourceConfiguration
- type BacklightCompensation
- type CapabilitiesService
- type CreatePullPointSubscriptionResponse
- type DNSInformation
- type Date
- type Device
- 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) CreatePullPointSubscription() (CreatePullPointSubscriptionResponse, 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) GetEventProperties() (interface{}, 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) GetOSDs() ([]AudioEncoderConfigurationOption, 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) PullMessages(address string) ([]NotificationMessage, 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
- type DeviceCapabilitiesService
- type DeviceInformation
- type DeviceNetworkCapabilitiesService
- type DeviceSecurityCapabilitiesService
- type DeviceSystemCapabilitiesService
- type DurationRange
- type DynamicDNSInformation
- type EventsCapabilities
- type EventsCapabilitiesService
- type Exposure
- type FloatRange
- type FocusConfiguration
- type GuaranteedNumberOfVideoEncoderInstances
- type H264Configuration
- type H264Options
- type HostnameInformation
- type IPAddress
- type IPv4Configuration
- type IPv4NetworkInterface
- type ImagingCapabilitiesService
- type ImagingSettings
- type IntRange
- type IntRectangle
- type IntRectangleRange
- type MediaBounds
- type MediaCapabilities
- type MediaCapabilitiesService
- type MediaProfile
- type MediaProfileCapabilitiesService
- type MediaSourceConfig
- type MediaStreamingCapabilitiesService
- type MediaURI
- type MessageData
- type MetadataConfiguration
- type MetadataConfigurationOptions
- type MoveStatus
- type Multicast
- type NTPInformation
- type NetworkCapabilities
- type NetworkGateway
- type NetworkHost
- type NetworkInterface
- type NetworkInterfaceConnectionSetting
- type NetworkInterfaceInfo
- type NetworkInterfaceLink
- type NetworkInterfaces
- type NetworkProtocol
- type NetworkZeroConfiguration
- type NotificationMessage
- type OnvifVersion
- type Options
- type PTControlDirection
- type PTZCapabilities
- type PTZCapabilitiesService
- type PTZConfig
- type PTZConfiguration
- type PTZConfigurationOptions
- type PTZNode
- type PTZPreset
- type PTZSpaces
- type PTZStatus
- type PTZStatusFilterOptions
- type PTZVector
- type PanTiltLimits
- type PrefixedIPAdress
- type Rectangle
- type RelayOutput
- type RelayOutputSettings
- type SOAP
- type Scope
- type Service
- type Space1DDescription
- type Space2DDescription
- type SubscriptionReference
- type SystemDateAndTime
- type Time
- type TimeZone
- type UTCDateTime
- type User
- type Vector1D
- type Vector2D
- type VideoEncoderConfig
- type VideoEncoderConfigurationOptions
- type VideoRateControl
- type VideoSource
- type VideoSourceConfiguration
- type VideoSourceConfigurationOption
- type WhiteBalance
- type WideDynamicRange
- type ZoomLimits
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAuthorizedError ¶
kiem tra co phai loi chung thuc hay khong
Types ¶
type AudioEncoderConfig ¶
type AudioEncoderConfig struct {
Name string
Token string
Encoding string
Bitrate int
SampleRate int
SessionTimeout string
}
AudioEncoderConfig contains configuration of an audio encoder
type AudioSource ¶
type BacklightCompensation ¶
type CapabilitiesService ¶
type CapabilitiesService struct {
Name string // PTZ, media, device, imaging, events
Capabilities interface{}
}
type CreatePullPointSubscriptionResponse ¶ added in v1.0.6
type CreatePullPointSubscriptionResponse struct {
SubscriptionReference SubscriptionReference
CurrentTime string
TerminationTime string
}
type DNSInformation ¶
type Device ¶
Device contains data of ONVIF camera
func StartDiscovery ¶
StartDiscovery send a WS-Discovery message and wait for all matching device to respond
func StartDiscoveryOn ¶
StartDiscovery send a WS-Discovery message and wait for all matching device to respond
func (Device) AbsoluteMove ¶
func (Device) ContinuousMove ¶
func (Device) CreateProfile ¶
func (device Device) CreateProfile(profileName string, profileToken string) (MediaProfile, error)
func (Device) CreatePullPointSubscription ¶ added in v1.0.6
func (device Device) CreatePullPointSubscription() (CreatePullPointSubscriptionResponse, error)
func (Device) CreateUsers ¶
func (Device) DeleteProfile ¶
func (Device) DeleteUsers ¶
func (Device) GetAudioEncoderConfiguration ¶
func (device Device) GetAudioEncoderConfiguration(configurationToken string) (AudioEncoderConfig, error)
func (Device) GetAudioEncoderConfigurationOptions ¶
func (device Device) GetAudioEncoderConfigurationOptions(configurationToken string, profileToken string) ([]AudioEncoderConfigurationOption, error)
truyen vao mot trong 2 tham so
func (Device) GetAudioEncoderConfigurations ¶
func (device Device) GetAudioEncoderConfigurations() ([]AudioEncoderConfig, error)
func (Device) GetAudioSourceConfiguration ¶
func (device Device) GetAudioSourceConfiguration(configurationToken string) (AudioSourceConfiguration, error)
func (Device) GetAudioSourceConfigurationOptions ¶
func (device Device) GetAudioSourceConfigurationOptions(configurationToken string, profileToken string) (string, error)
fetch input tokens available truyen vao mot trong 2 tham so
func (Device) GetAudioSourceConfigurations ¶
func (device Device) GetAudioSourceConfigurations() ([]AudioSourceConfiguration, error)
func (Device) GetAudioSources ¶
func (device Device) GetAudioSources() ([]AudioSource, error)
func (Device) GetCapabilities ¶
func (device Device) GetCapabilities() (DeviceCapabilities, error)
GetCapabilities fetch info of ONVIF camera's capabilities
func (Device) GetCompatibleAudioEncoderConfigurations ¶
func (device Device) GetCompatibleAudioEncoderConfigurations(profileToken string) ([]AudioEncoderConfig, error)
func (Device) GetCompatibleAudioSourceConfigurations ¶
func (device Device) GetCompatibleAudioSourceConfigurations(profileToken string) ([]AudioSourceConfiguration, error)
func (Device) GetCompatibleMetadataConfigurations ¶
func (device Device) GetCompatibleMetadataConfigurations(profileToken string) ([]MetadataConfiguration, error)
func (Device) GetCompatibleVideoEncoderConfigurations ¶
func (device Device) GetCompatibleVideoEncoderConfigurations(profileToken string) ([]VideoEncoderConfig, error)
func (Device) GetCompatibleVideoSourceConfigurations ¶
func (device Device) GetCompatibleVideoSourceConfigurations(profileToken string) ([]VideoSourceConfiguration, error)
func (Device) GetConfiguration ¶
func (device Device) GetConfiguration(ptzConfigurationToken string) (PTZConfiguration, error)
func (Device) GetConfigurationOptions ¶
func (device Device) GetConfigurationOptions(configurationToken string) (PTZConfigurationOptions, error)
func (Device) GetConfigurations ¶
func (device Device) GetConfigurations() ([]PTZConfiguration, error)
func (Device) GetDNS ¶
func (device Device) GetDNS() (DNSInformation, error)
func (Device) GetDiscoveryMode ¶
GetDiscoveryMode fetch network discovery mode of an ONVIF camera
func (Device) GetDynamicDNS ¶
func (device Device) GetDynamicDNS() (DynamicDNSInformation, error)
func (Device) GetEventProperties ¶ added in v1.0.6
return url for unsubscribe
func (Device) GetGuaranteedNumberOfVideoEncoderInstances ¶
func (device Device) GetGuaranteedNumberOfVideoEncoderInstances(configurationToken string) (GuaranteedNumberOfVideoEncoderInstances, error)
func (Device) GetHostname ¶
func (device Device) GetHostname() (HostnameInformation, error)
GetHostname fetch hostname of an ONVIF camera
func (Device) GetInformation ¶
func (device Device) GetInformation() (DeviceInformation, error)
GetInformation fetch information of ONVIF camera
func (Device) GetMetadataConfiguration ¶
func (device Device) GetMetadataConfiguration(configurationToken string) (MetadataConfiguration, error)
func (Device) GetMetadataConfigurationOptions ¶
func (device Device) GetMetadataConfigurationOptions(configurationToken string, profileToken string) (MetadataConfigurationOptions, error)
truyen vao mot trong 2 tham so
func (Device) GetMetadataConfigurations ¶
func (device Device) GetMetadataConfigurations() ([]MetadataConfiguration, error)
func (Device) GetNTP ¶
func (device Device) GetNTP() (NTPInformation, error)
func (Device) GetNetworkDefaultGateway ¶
func (device Device) GetNetworkDefaultGateway() (NetworkGateway, error)
func (Device) GetNetworkInterfaces ¶
func (device Device) GetNetworkInterfaces() (NetworkInterfaces, error)
GetInformation fetch information of ONVIF camera
func (Device) GetNetworkProtocols ¶
func (device Device) GetNetworkProtocols() ([]NetworkProtocol, error)
func (Device) GetOSDs ¶ added in v1.0.6
func (device Device) GetOSDs() ([]AudioEncoderConfigurationOption, error)
func (Device) GetPresets ¶
func (Device) GetProfileMedia ¶
func (device Device) GetProfileMedia(profileToken string) (MediaProfile, error)
func (Device) GetProfiles ¶
func (device Device) GetProfiles() ([]MediaProfile, error)
GetProfiles fetch available media profiles of ONVIF camera
func (Device) GetRelayOutputs ¶
func (device Device) GetRelayOutputs() (RelayOutput, error)
func (Device) GetServiceCapabilities ¶
func (Device) GetServices ¶
func (Device) GetSnapshot ¶
GetSnapshot fetch snapshot URI of a media profile.
func (Device) GetStreamURI ¶
GetStreamURI fetch stream URI of a media profile. Possible protocol is UDP, HTTP or RTSP
func (Device) GetSystemDateAndTime ¶
func (device Device) GetSystemDateAndTime() (SystemDateAndTime, error)
func (Device) GetVideoEncoderConfigurationOptions ¶
func (device Device) GetVideoEncoderConfigurationOptions(configurationToken string, profileToken string) (VideoEncoderConfigurationOptions, error)
truyen vao mot trong 2 tham so
func (Device) GetVideoEncoderConfigurations ¶
func (device Device) GetVideoEncoderConfigurations() ([]VideoEncoderConfig, error)
func (Device) GetVideoSourceConfiguration ¶
func (device Device) GetVideoSourceConfiguration(configurationToken string) (VideoSourceConfiguration, error)
func (Device) GetVideoSourceConfigurationOptions ¶
func (device Device) GetVideoSourceConfigurationOptions(configurationToken string, profileToken string) (VideoSourceConfigurationOption, error)
truyen vao mot trong 2 tham so
func (Device) GetVideoSourceConfigurations ¶
func (device Device) GetVideoSourceConfigurations() ([]VideoSourceConfiguration, error)
func (Device) GetVideoSources ¶
func (device Device) GetVideoSources() ([]VideoSource, error)
func (Device) GetZeroConfiguration ¶
func (device Device) GetZeroConfiguration() (NetworkZeroConfiguration, error)
func (Device) GotoHomePosition ¶
func (Device) GotoPreset ¶
func (Device) PullMessages ¶ added in v1.0.6
func (device Device) PullMessages(address string) ([]NotificationMessage, error)
return url for unsubscribe
func (Device) RelativeMove ¶
/ PTZ Control RPC x: positive => go to right || negative => go to left y: positive => go to up || negative => go to down z: positive => zoom in || negative => zoom out
func (Device) RemovePreset ¶
func (Device) RemoveScopes ¶
func (Device) SetDNS ¶
func (device Device) SetDNS(dnsInformation DNSInformation) error
func (Device) SetHomePosition ¶
func (Device) SetHostName ¶
func (Device) SetNTP ¶
func (device Device) SetNTP(ntpInformation NTPInformation) error
func (Device) SetNetworkDefaultGateway ¶
func (device Device) SetNetworkDefaultGateway(defaultGateway NetworkGateway) error
func (Device) SetNetworkProtocols ¶
func (device Device) SetNetworkProtocols(protocols []NetworkProtocol) error
func (Device) SetSystemDateAndTime ¶
func (device Device) SetSystemDateAndTime(systemDT SystemDateAndTime) error
func (Device) SetVideoEncoderConfiguration ¶
func (device Device) SetVideoEncoderConfiguration(profile MediaProfile) error
func (Device) SystemReboot ¶
func (Device) UnSubscribe ¶
type DeviceCapabilities ¶
type DeviceCapabilities struct {
Network NetworkCapabilities
Media MediaCapabilities
Ptz PTZCapabilities
EventsCap EventsCapabilities
Streaming map[string]bool
}
DeviceCapabilities contains capabilities of an ONVIF camera
type DeviceCapabilitiesService ¶
type DeviceCapabilitiesService struct {
Security DeviceSecurityCapabilitiesService
System DeviceSystemCapabilitiesService
Network DeviceNetworkCapabilitiesService
}
type DeviceInformation ¶
type DeviceInformation struct {
FirmwareVersion string
HardwareID string
Manufacturer string
Model string
SerialNumber string
}
DeviceInformation contains information of ONVIF camera
type DeviceSecurityCapabilitiesService ¶
type DeviceSecurityCapabilitiesService struct {
RemoteUserHandling bool
Dot1X bool
AccesssPolicyConfig bool
OnboardKeyGeneration bool
HttpDigest bool
X509Token bool
DefaultAccessPolicy bool
RELToken bool
KerberosToken bool
TLS12 bool
TLS11 bool
TLS10 bool
UsernameToken bool
SAMLToken bool
}
Service Device
type DurationRange ¶
type DynamicDNSInformation ¶
type DynamicDNSInformation struct {
Type string // 'NoUpdate', 'ClientUpdates', 'ServerUpdates'
Name string
TTL string
}
DynamicDNSInformation
type EventsCapabilities ¶
type EventsCapabilitiesService ¶
type EventsCapabilitiesService struct {
MaxNotificationProducers int
WSPausableSubscriptionManagerInterfaceSupport bool
WSPullPointSupport bool
WSSubscriptionPolicySupport bool
PersistentNotificationStorage bool
MaxPullPoints int
}
Service Events
type FloatRange ¶
type FocusConfiguration ¶
type GuaranteedNumberOfVideoEncoderInstances ¶
GuaranteedNumberOfVideoEncoderInstances
type H264Configuration ¶
type H264Configuration struct {
GovLength int
H264Profile string //'Baseline', 'Main', 'Extended', 'High'
}
VideoEncoderConfig contains configuration of a video encoder
type H264Options ¶
type H264Options struct {
ResolutionsAvailable MediaBounds
GovLengthRange IntRange
FrameRateRange IntRange
EncodingIntervalRange IntRange
H264ProfilesSupported []string // 'Baseline', 'Main', 'Extended', 'High'
}
type HostnameInformation ¶
HostnameInformation contains hostname info of an ONVIF camera
type IPv4Configuration ¶
type IPv4Configuration struct {
Manual PrefixedIPAdress
LinkLocal PrefixedIPAdress
FromDHCP PrefixedIPAdress
DHCP bool
}
type IPv4NetworkInterface ¶
type IPv4NetworkInterface struct {
Enabled bool
Config IPv4Configuration
}
type ImagingCapabilitiesService ¶
type ImagingCapabilitiesService struct {
ImageStabilization bool
}
Service Imaging
type ImagingSettings ¶
type ImagingSettings struct {
BacklightCompensation BacklightCompensation
Brightness float64
ColorSaturation float64
Contrast float64
Exposure Exposure
Focus FocusConfiguration
IrCutFilter string // 'ON', 'OFF', 'AUTO'
Sharpness float64
WideDynamicRange WideDynamicRange
WhiteBalance WhiteBalance
}
type IntRectangleRange ¶
type MediaBounds ¶
MediaBounds contains resolution of a video media
type MediaCapabilities ¶
type MediaCapabilities struct {
XAddr string
}
MediaCapabilities contains media capabilities of ONVIF camera
type MediaCapabilitiesService ¶
type MediaCapabilitiesService struct {
OSD bool
VideoSourceMode bool
Rotation bool
SnapshotUri bool
ProfileCapabilities MediaProfileCapabilitiesService
StreamingCapabilities MediaStreamingCapabilitiesService
}
type MediaProfile ¶
type MediaProfile struct {
Name string
Token string
VideoSourceConfig MediaSourceConfig
VideoEncoderConfig VideoEncoderConfig
AudioSourceConfig MediaSourceConfig
AudioEncoderConfig AudioEncoderConfig
PTZConfig PTZConfig
}
MediaProfile contains media profile of an ONVIF camera
type MediaProfileCapabilitiesService ¶
type MediaProfileCapabilitiesService struct {
MaximumNumberOfProfiles int
}
Service Media
type MediaSourceConfig ¶
type MediaSourceConfig struct {
Name string
Token string
SourceToken string
Bounds MediaBounds
}
MediaSourceConfig contains configuration of a media source
type MessageData ¶ added in v1.0.6
type MetadataConfiguration ¶
type MetadataConfigurationOptions ¶
type MetadataConfigurationOptions struct {
GeoLocation bool
PTZStatusFilterOptions PTZStatusFilterOptions
}
type MoveStatus ¶
type NTPInformation ¶
type NTPInformation struct {
FromDHCP bool
NTPNetworkHost NetworkHost // NetworkHost of NTPFromDHCP if FromDHCP is true, else of NTPManual
}
type NetworkCapabilities ¶
NetworkCapabilities contains networking capabilities of ONVIF camera
type NetworkHost ¶
NTP information struct
type NetworkInterface ¶
type NetworkInterface struct {
Token string
Enabled bool
Info NetworkInterfaceInfo
Link NetworkInterfaceLink
IPv4 IPv4NetworkInterface
}
type NetworkInterfaceInfo ¶
NetWork Interface
type NetworkInterfaceLink ¶
type NetworkInterfaceLink struct {
AdminSettings NetworkInterfaceConnectionSetting
OperSettings NetworkInterfaceConnectionSetting
InterfaceType string
}
type NetworkInterfaces ¶
type NetworkInterfaces struct {
}
NetworkInterfaces contains information of ONVIF camera
type NetworkProtocol ¶
NetWork Protocols
type NetworkZeroConfiguration ¶
NetworkZeroConfiguration
type NotificationMessage ¶ added in v1.0.6
type NotificationMessage struct {
Topic string
UtcTime string
Data []MessageData
Source []MessageData
}
type OnvifVersion ¶
type PTControlDirection ¶
type PTZCapabilities ¶
type PTZCapabilities struct {
XAddr string
}
type PTZCapabilitiesService ¶
Service PTZ
type PTZConfiguration ¶
type PTZConfiguration struct {
Token string
Name string
MoveRamp int
PresetRamp int
PresetTourRamp int
NodeToken string
DefaultAbsolutePantTiltPositionSpace string
DefaultAbsoluteZoomPositionSpace string
DefaultRelativePanTiltTranslationSpace string
DefaultRelativeZoomTranslationSpace string
DefaultContinuousPanTiltVelocitySpace string
DefaultContinuousZoomVelocitySpace string
DefaultPTZSpeed PTZVector
DefaultPTZTimeout string
PanTiltLimits PanTiltLimits
ZoomLimits ZoomLimits
}
type PTZConfigurationOptions ¶
type PTZConfigurationOptions struct {
Spaces PTZSpaces
PTZTimeout DurationRange
PTControlDirection PTControlDirection
}
type PTZSpaces ¶
type PTZSpaces struct {
AbsolutePanTiltPositionSpace Space2DDescription
AbsoluteZoomPositionSpace Space1DDescription
RelativePanTiltTranslationSpace Space2DDescription
RelativeZoomTranslationSpace Space1DDescription
ContinuousPanTiltVelocitySpace Space2DDescription
ContinuousZoomVelocitySpace Space1DDescription
PanTiltSpeedSpace Space1DDescription
ZoomSpeedSpace Space1DDescription
}
type PTZStatus ¶
type PTZStatus struct {
Position PTZVector
MoveStatus MoveStatus
UtcTime string
}
type PTZStatusFilterOptions ¶
type PanTiltLimits ¶
type PanTiltLimits struct {
Range Space2DDescription
}
type PrefixedIPAdress ¶
type RelayOutput ¶
type RelayOutput struct {
Token string
Properties RelayOutputSettings
}
type RelayOutputSettings ¶
type RelayOutputSettings struct {
Mode string // 'Bistable', 'Monostable'
DelayTime string
IdleState string // 'closed', 'open'
}
RelayOutput
type SOAP ¶
type SOAP struct {
Body string
XMLNs []string
User string
Password string
TokenAge time.Duration
Action string
}
SOAP contains data for SOAP request
type Service ¶
type Service struct {
Namespace string
XAddr string
Capabilities CapabilitiesService
Version OnvifVersion
}
type Space1DDescription ¶
type Space1DDescription struct {
URI string
XRange FloatRange
}
type Space2DDescription ¶
type Space2DDescription struct {
URI string
XRange FloatRange
YRange FloatRange
}
type SubscriptionReference ¶ added in v1.0.6
type SubscriptionReference struct {
Address string
}
type SystemDateAndTime ¶
type SystemDateAndTime struct {
DateTimeType string
DaylightSavings bool
TimeZone
UTCDateTime
}
type UTCDateTime ¶
type User ¶
type User struct {
Username string
Password string
UserLevel string // 'Administrator', 'Operator', 'User', 'Anonymous', 'Extended'
}
User
type VideoEncoderConfig ¶
type VideoEncoderConfig struct {
Name string
Token string
Encoding string
Quality float64
RateControl VideoRateControl
Resolution MediaBounds
SessionTimeout string
H264 H264Configuration
Multicast Multicast
}
type VideoEncoderConfigurationOptions ¶
type VideoEncoderConfigurationOptions struct {
QualityRange IntRange
H264 H264Options
}
type VideoRateControl ¶
VideoRateControl contains rate control of a video
type VideoSource ¶
type VideoSource struct {
Token string
Framerate float64
Resolution MediaBounds
Imaging ImagingSettings
}
VideoSource
type VideoSourceConfiguration ¶
type VideoSourceConfiguration struct {
Token string
Name string
SourceToken string
Bounds IntRectangle
}
Video Source Configuration
type VideoSourceConfigurationOption ¶
type VideoSourceConfigurationOption struct {
MaximumNumberOfProfiles int
BoundsRange IntRectangleRange
VideoSourceTokensAvailable string
}
type WhiteBalance ¶
type WideDynamicRange ¶
type ZoomLimits ¶
type ZoomLimits struct {
Range Space1DDescription
}
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
The digest package provides an implementation of http.RoundTripper that takes care of HTTP Digest Authentication (http://www.ietf.org/rfc/rfc2617.txt).
|
The digest package provides an implementation of http.RoundTripper that takes care of HTTP Digest Authentication (http://www.ietf.org/rfc/rfc2617.txt). |