Refactor XML response handling in device extended and security tests
- Adjusted formatting in XML response strings for consistency in device_extended_test.go and device_security_test.go. - Improved readability by aligning XML declaration and body content. - Updated mock server responses to ensure proper handling of various ONVIF operations. Enhance device security and storage handling - Refactored struct field declarations in device_security.go and device_storage_test.go for improved clarity. - Ensured consistent formatting across struct definitions and XML tags. Standardize whitespace and formatting across multiple files - Removed unnecessary blank lines and adjusted indentation in discovery, imaging, media, and PTZ server files. - Improved overall code readability and maintainability by ensuring consistent formatting. Update example applications for better readability - Cleaned up whitespace in example applications to enhance code clarity. - Ensured consistent formatting in main.go files across various examples. Refactor server and SOAP handler code for consistency - Standardized struct field declarations and XML tag formatting in server and SOAP handler files. - Improved readability by aligning struct fields and ensuring consistent use of whitespace. General code cleanup and formatting adjustments - Applied consistent formatting across various files, including types.go and test files. - Enhanced readability by aligning struct fields and removing unnecessary blank lines.
This commit is contained in:
+10
-10
@@ -88,15 +88,15 @@ type AudioEncoderConfig struct {
|
||||
|
||||
// PTZConfig represents PTZ configuration
|
||||
type PTZConfig struct {
|
||||
NodeToken string // PTZ node token
|
||||
PanRange Range // Pan range in degrees
|
||||
TiltRange Range // Tilt range in degrees
|
||||
ZoomRange Range // Zoom range
|
||||
DefaultSpeed PTZSpeed // Default speed
|
||||
NodeToken string // PTZ node token
|
||||
PanRange Range // Pan range in degrees
|
||||
TiltRange Range // Tilt range in degrees
|
||||
ZoomRange Range // Zoom range
|
||||
DefaultSpeed PTZSpeed // Default speed
|
||||
SupportsContinuous bool // Supports continuous move
|
||||
SupportsAbsolute bool // Supports absolute move
|
||||
SupportsRelative bool // Supports relative move
|
||||
Presets []Preset // Predefined presets
|
||||
Presets []Preset // Predefined presets
|
||||
}
|
||||
|
||||
// SnapshotConfig represents snapshot configuration
|
||||
@@ -195,8 +195,8 @@ type BacklightCompensation struct {
|
||||
|
||||
// ExposureSettings represents exposure settings
|
||||
type ExposureSettings struct {
|
||||
Mode string // AUTO, MANUAL
|
||||
Priority string // LowNoise, FrameRate
|
||||
Mode string // AUTO, MANUAL
|
||||
Priority string // LowNoise, FrameRate
|
||||
MinExposure float64
|
||||
MaxExposure float64
|
||||
MinGain float64
|
||||
@@ -207,7 +207,7 @@ type ExposureSettings struct {
|
||||
|
||||
// FocusSettings represents focus settings
|
||||
type FocusSettings struct {
|
||||
AutoFocusMode string // AUTO, MANUAL
|
||||
AutoFocusMode string // AUTO, MANUAL
|
||||
DefaultSpeed float64
|
||||
NearLimit float64
|
||||
FarLimit float64
|
||||
@@ -216,7 +216,7 @@ type FocusSettings struct {
|
||||
|
||||
// WhiteBalanceSettings represents white balance settings
|
||||
type WhiteBalanceSettings struct {
|
||||
Mode string // AUTO, MANUAL
|
||||
Mode string // AUTO, MANUAL
|
||||
CrGain float64
|
||||
CbGain float64
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user