Versions in this module Expand all Collapse all v0 v0.0.14 Apr 12, 2020 Changes in this version type Device + IPAddress string v0.0.13 Apr 8, 2020 Changes in this version + func Debug(args ...interface{}) + func Debugf(format string, args ...interface{}) + func Debugln(args ...interface{}) + func Error(args ...interface{}) + func Errorf(format string, args ...interface{}) + func Errorln(args ...interface{}) + func Fatal(args ...interface{}) + func Fatalf(format string, args ...interface{}) + func Fatalln(args ...interface{}) + func Info(args ...interface{}) + func Infof(format string, args ...interface{}) + func Infoln(args ...interface{}) + func Panic(args ...interface{}) + func Panicf(format string, args ...interface{}) + func Panicln(args ...interface{}) + func Print(args ...interface{}) + func Printf(format string, args ...interface{}) + func Println(args ...interface{}) + func Set(level string) error + func Warn(args ...interface{}) + func Warnf(format string, args ...interface{}) + func Warnln(args ...interface{}) + type AudioEncoderConfig struct + Bitrate int + Encoding string + Name string + SampleRate int + SessionTimeout string + Token string + type DateTime struct + Date Date_ + Time Time_ + type Date_ struct + Day int + Month int + Year int + type Device struct + ID string + MACAddr string + Name string + Password string + Services map[string]Service + User string + XAddr string + func StartDiscovery(duration time.Duration) ([]*Device, error) + func StartDiscoveryWithContext(ctx context.Context, addrs []net.Addr, duration time.Duration) ([]*Device, error) + func (device *Device) GetCapabilities() (DeviceCapabilities, error) + func (device *Device) GetDiscoveryMode() (string, error) + func (device *Device) GetHostname() (HostnameInformation, error) + func (device *Device) GetImagingSettings(videoSourceToken string) (ImagingSettings, error) + func (device *Device) GetInformation() (DeviceInformation, error) + func (device *Device) GetNTP() (NTPInformation, error) + func (device *Device) GetNetworkInterfaces() (NetworkInterfaces, error) + func (device *Device) GetOSDs() ([]OSD, error) + func (device *Device) GetProfiles() ([]MediaProfile, error) + func (device *Device) GetScopes() ([]string, error) + func (device *Device) GetServices() (services []Service, err error) + func (device *Device) GetSnapshotURI(profileToken string) (MediaURI, error) + func (device *Device) GetStreamURI(profileToken, protocol string) (MediaURI, error) + func (device *Device) GetSystemDateAndTime() (SystemDateAndTime, error) + func (device *Device) SetAudioEncoderConfiguration(config AudioEncoderConfig) error + func (device *Device) SetDeviceName(name, location string) error + func (device *Device) SetHostname(name string) error + func (device *Device) SetNTP(ntpServer string) error + func (device *Device) SetNetworkInterfaces() error + func (device *Device) SetOSD(token string, text string) error + func (device *Device) SetOSD1(token string, text string) error + func (device *Device) SetSystemDateAndTime(useNTP bool, t time.Time) error + func (device *Device) SetVideoEncoderConfiguration(config VideoEncoderConfig) error + func (device *Device) SetVideoEncoderConfiguration1(config VideoEncoderConfig) error + func (device Device) GetNetworkProtocols() ([]NetworkProtocol, error) + type DeviceCapabilities struct + Events map[string]bool + Network NetworkCapabilities + Streaming map[string]bool + type DeviceInformation struct + FirmwareVersion string + HardwareID string + Manufacturer string + Model string + SerialNumber string + type ErrNewUnsupportedError OnvifErr + func NewUnsupportedError(subCode, detail string) ErrNewUnsupportedError + func (e ErrNewUnsupportedError) Error() string + type ErrOperationProhibited OnvifErr + func NewErrOperationProhibited(detail string) ErrOperationProhibited + func (e ErrOperationProhibited) Error() string + type Exposure20 struct + ExposureTime float64 + Gain float64 + Iris float64 + MaxExposureTime float64 + MaxGain float64 + MaxIris float64 + MinExposureTime float64 + MinGain float64 + MinIris float64 + Mode string + Priority string + type FocusConfiguration20 struct + AutoFocusMode string + DefaultSpeed float64 + FarLimit float64 + NearLimit float64 + type FromDHCP struct + Address string + PrefixLength string + type HostnameInformation struct + FromDHCP bool + Name string + type IPv4 struct + Enabled string + IPv4Config IPv4Config + type IPv4Config struct + DHCP string + FromDHCP FromDHCP + type ImagingSettings struct + BacklightCompensation ModeAndLevel + Brightness float64 + ColorSaturation float64 + Contrast float64 + Exposure Exposure20 + Focus FocusConfiguration20 + IrCutFilter string + Sharpness float64 + WhiteBalance WhiteBalance20 + WideDynamicRange ModeAndLevel + type Level uint8 + type MediaBounds struct + Height int + Width int + type MediaProfile struct + AudioEncoderConfig AudioEncoderConfig + AudioSourceConfig MediaSourceConfig + Name string + PTZConfig PTZConfig + Token string + VideoEncoderConfig VideoEncoderConfig + VideoSourceConfig MediaSourceConfig + type MediaSourceConfig struct + Bounds MediaBounds + Name string + SourceToken string + Token string + type MediaURI struct + InvalidAfterConnect bool + InvalidAfterReboot bool + Timeout string + URI string + type ModeAndLevel struct + Level float64 + Mode string + type NTPInformation struct + FromDHCP bool + NTPFromDHCP NetworkHost + NTPManual NetworkHost + type NetworkCapabilities struct + DynDNS bool + IPFilter bool + IPVersion6 bool + ZeroConfig bool + type NetworkHost struct + DNSname string + IPv4Address string + IPv6Address string + Type string + type NetworkInfo struct + HwAddress string + type NetworkInterfaces struct + Enabled string + IPv4 IPv4 + Info NetworkInfo + type NetworkProtocol struct + Enabled bool + Name string + Port int64 + type NetworkProtocolsResponse struct + NetworkProtocols []networkProtocol + type OSD struct + Pos Position + Text TextString + Token string + Type string + VideoSourceToken string + type OSDColor struct + Transparent int + type OnvifErr struct + Detail string + type PTZConfig struct + Name string + NodeToken string + Token string + type PosXY struct + type Position struct + Pos PosXY + Type string + type SOAP struct + AuthHeaders string + Body string + Method string + Password string + TokenAge time.Duration + URI string + User string + XMLNs []string + func (soap *SOAP) SendRequest(xaddr string) (mxj.Map, error) + type Service struct + NameSpace string + Version Version + XAddr string + type SystemDateAndTime struct + DateTimeType string + DaylightSavings bool + LocalDateTime DateTime + TimeZone TimeZone_ + UTCDateTime DateTime + type TextString struct + BackgroundColor OSDColor + DateFormat string + FontColor OSDColor + FontSize int + IsPersistentText bool + PlainText string + TimeFormat string + Type string + type TimeZone_ struct + TZ string + type Time_ struct + Hour int + Minute int + Second int + type Version struct + Major int + Minor int + type VideoEncoderConfig struct + Encoding string + GovLength int + Name string + Quality int + RateControl VideoRateControl + Resolution MediaBounds + SessionTimeout string + Token string + type VideoRateControl struct + BitrateLimit int + ConstantBitRate bool + EncodingInterval int + FrameRateLimit int + type WhiteBalance20 struct + CbGain float64 + CrGain float64 + Mode string