Merge pull request #23 from 0x524a/reponame-change
fix: update repository references from '0x524A' to '0x524a' across do…
This commit is contained in:
@@ -96,7 +96,7 @@ Help us maintain compatibility information:
|
|||||||
### Clone and Build
|
### Clone and Build
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/0x524A/onvif-go.git
|
git clone https://github.com/0x524a/onvif-go.git
|
||||||
cd go-onvif
|
cd go-onvif
|
||||||
go build ./...
|
go build ./...
|
||||||
```
|
```
|
||||||
@@ -262,9 +262,9 @@ go-onvif/
|
|||||||
|
|
||||||
## Getting Help
|
## Getting Help
|
||||||
|
|
||||||
- 💬 [GitHub Discussions](https://github.com/0x524A/onvif-go/discussions) - Ask questions
|
- 💬 [GitHub Discussions](https://github.com/0x524a/onvif-go/discussions) - Ask questions
|
||||||
- 🐛 [GitHub Issues](https://github.com/0x524A/onvif-go/issues) - Report bugs
|
- 🐛 [GitHub Issues](https://github.com/0x524a/onvif-go/issues) - Report bugs
|
||||||
- 📖 [Documentation](https://pkg.go.dev/github.com/0x524A/onvif-go) - Read the docs
|
- 📖 [Documentation](https://pkg.go.dev/github.com/0x524a/onvif-go) - Read the docs
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ body:
|
|||||||
placeholder: |
|
placeholder: |
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import "github.com/0x524A/onvif-go"
|
import "github.com/0x524a/onvif-go"
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
// Your code here
|
// Your code here
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
blank_issues_enabled: false
|
blank_issues_enabled: false
|
||||||
contact_links:
|
contact_links:
|
||||||
- name: 💬 Discussions
|
- name: 💬 Discussions
|
||||||
url: https://github.com/0x524A/onvif-go/discussions
|
url: https://github.com/0x524a/onvif-go/discussions
|
||||||
about: Ask questions and discuss ideas with the community
|
about: Ask questions and discuss ideas with the community
|
||||||
- name: 📖 Documentation
|
- name: 📖 Documentation
|
||||||
url: https://pkg.go.dev/github.com/0x524A/onvif-go
|
url: https://pkg.go.dev/github.com/0x524a/onvif-go
|
||||||
about: Read the API documentation
|
about: Read the API documentation
|
||||||
- name: 📚 Examples
|
- name: 📚 Examples
|
||||||
url: https://github.com/0x524A/onvif-go/tree/main/examples
|
url: https://github.com/0x524a/onvif-go/tree/main/examples
|
||||||
about: Browse code examples
|
about: Browse code examples
|
||||||
|
|||||||
+2
-2
@@ -209,8 +209,8 @@ Users can verify downloads using checksums:
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Download binary and checksum
|
# Download binary and checksum
|
||||||
wget https://github.com/0x524A/onvif-go/releases/download/v1.0.0/onvif-go-v1.0.0-linux-amd64.tar.gz
|
wget https://github.com/0x524a/onvif-go/releases/download/v1.0.0/onvif-go-v1.0.0-linux-amd64.tar.gz
|
||||||
wget https://github.com/0x524A/onvif-go/releases/download/v1.0.0/checksums.txt
|
wget https://github.com/0x524a/onvif-go/releases/download/v1.0.0/checksums.txt
|
||||||
|
|
||||||
# Verify
|
# Verify
|
||||||
sha256sum -c checksums.txt --ignore-missing
|
sha256sum -c checksums.txt --ignore-missing
|
||||||
|
|||||||
+1
-1
@@ -66,4 +66,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
- Comprehensive documentation
|
- Comprehensive documentation
|
||||||
- README with usage guide
|
- README with usage guide
|
||||||
|
|
||||||
[Unreleased]: https://github.com/0x524A/onvif-go/compare/v0.1.0...HEAD
|
[Unreleased]: https://github.com/0x524a/onvif-go/compare/v0.1.0...HEAD
|
||||||
|
|||||||
+1
-1
@@ -45,7 +45,7 @@ git clone https://github.com/YOUR_USERNAME/go-onvif.git
|
|||||||
cd go-onvif
|
cd go-onvif
|
||||||
|
|
||||||
# Add upstream remote
|
# Add upstream remote
|
||||||
git remote add upstream https://github.com/0x524A/onvif-go.git
|
git remote add upstream https://github.com/0x524a/onvif-go.git
|
||||||
|
|
||||||
# Create a branch
|
# Create a branch
|
||||||
git checkout -b feature/my-new-feature
|
git checkout -b feature/my-new-feature
|
||||||
|
|||||||
+6
-6
@@ -5,7 +5,7 @@ Get up and running with go-onvif in 5 minutes!
|
|||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
go get github.com/0x524A/onvif-go
|
go get github.com/0x524a/onvif-go
|
||||||
```
|
```
|
||||||
|
|
||||||
## Step 1: Discover Cameras
|
## Step 1: Discover Cameras
|
||||||
@@ -20,7 +20,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/0x524A/onvif-go/discovery"
|
"github.com/0x524a/onvif-go/discovery"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
@@ -52,7 +52,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/0x524A/onvif-go"
|
"github.com/0x524a/onvif-go"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
@@ -181,7 +181,7 @@ import (
|
|||||||
"log"
|
"log"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/0x524A/onvif-go"
|
"github.com/0x524a/onvif-go"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
@@ -265,9 +265,9 @@ func main() {
|
|||||||
## Next Steps
|
## Next Steps
|
||||||
|
|
||||||
1. **Explore Examples**: Check out the `examples/` directory for more detailed use cases
|
1. **Explore Examples**: Check out the `examples/` directory for more detailed use cases
|
||||||
2. **Read Documentation**: Visit [pkg.go.dev](https://pkg.go.dev/github.com/0x524A/onvif-go)
|
2. **Read Documentation**: Visit [pkg.go.dev](https://pkg.go.dev/github.com/0x524a/onvif-go)
|
||||||
3. **Review Architecture**: See [ARCHITECTURE.md](ARCHITECTURE.md) for design details
|
3. **Review Architecture**: See [ARCHITECTURE.md](ARCHITECTURE.md) for design details
|
||||||
4. **Check Issues**: Look at [GitHub Issues](https://github.com/0x524A/onvif-go/issues) for known issues
|
4. **Check Issues**: Look at [GitHub Issues](https://github.com/0x524a/onvif-go/issues) for known issues
|
||||||
|
|
||||||
## Common Patterns
|
## Common Patterns
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
# onvif-go - ONVIF Client and Server Library for Go
|
# onvif-go - ONVIF Client and Server Library for Go
|
||||||
|
|
||||||
[](https://pkg.go.dev/github.com/0x524A/onvif-go)
|
[](https://pkg.go.dev/github.com/0x524a/onvif-go)
|
||||||
[](https://goreportcard.com/report/github.com/0x524A/onvif-go)
|
[](https://goreportcard.com/report/github.com/0x524a/onvif-go)
|
||||||
[](LICENSE)
|
[](LICENSE)
|
||||||
[](https://github.com/0x524A/onvif-go/stargazers)
|
[](https://github.com/0x524a/onvif-go/stargazers)
|
||||||
[](https://github.com/0x524A/onvif-go/issues)
|
[](https://github.com/0x524a/onvif-go/issues)
|
||||||
|
|
||||||
> **Modern, high-performance Go library for ONVIF IP camera integration** - Control surveillance cameras, NVRs, and video devices with comprehensive ONVIF Profile S/T/G support. Includes both client and server implementations for complete ONVIF camera simulation and testing.
|
> **Modern, high-performance Go library for ONVIF IP camera integration** - Control surveillance cameras, NVRs, and video devices with comprehensive ONVIF Profile S/T/G support. Includes both client and server implementations for complete ONVIF camera simulation and testing.
|
||||||
|
|
||||||
@@ -71,7 +71,7 @@ ONVIF (Open Network Video Interface Forum) is an open industry standard for IP-b
|
|||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
go get github.com/0x524A/onvif-go
|
go get github.com/0x524a/onvif-go
|
||||||
```
|
```
|
||||||
|
|
||||||
## Quick Start
|
## Quick Start
|
||||||
@@ -87,7 +87,7 @@ import (
|
|||||||
"log"
|
"log"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/0x524A/onvif-go/discovery"
|
"github.com/0x524a/onvif-go/discovery"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
@@ -118,7 +118,7 @@ import (
|
|||||||
"log"
|
"log"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/0x524A/onvif-go"
|
"github.com/0x524a/onvif-go"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
@@ -322,7 +322,7 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
"github.com/0x524A/onvif-go/server"
|
"github.com/0x524a/onvif-go/server"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
@@ -529,14 +529,14 @@ go test -v ./testdata/captures/
|
|||||||
|
|
||||||
If you find this project useful, please consider giving it a star! ⭐
|
If you find this project useful, please consider giving it a star! ⭐
|
||||||
|
|
||||||
[](https://star-history.com/#0x524A/go-onvif&Date)
|
[](https://star-history.com/#0x524a/go-onvif&Date)
|
||||||
|
|
||||||
## 📊 Project Stats
|
## 📊 Project Stats
|
||||||
|
|
||||||

|

|
||||||

|

|
||||||

|

|
||||||

|

|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
@@ -550,9 +550,9 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file
|
|||||||
|
|
||||||
## Support
|
## Support
|
||||||
|
|
||||||
- 📖 [Documentation](https://pkg.go.dev/github.com/0x524A/onvif-go)
|
- 📖 [Documentation](https://pkg.go.dev/github.com/0x524a/onvif-go)
|
||||||
- 🐛 [Issue Tracker](https://github.com/0x524A/onvif-go/issues)
|
- 🐛 [Issue Tracker](https://github.com/0x524a/onvif-go/issues)
|
||||||
- 💬 [Discussions](https://github.com/0x524A/onvif-go/discussions)
|
- 💬 [Discussions](https://github.com/0x524a/onvif-go/discussions)
|
||||||
- 🔒 [Security Policy](.github/SECURITY.md)
|
- 🔒 [Security Policy](.github/SECURITY.md)
|
||||||
|
|
||||||
## Keywords
|
## Keywords
|
||||||
|
|||||||
@@ -9,8 +9,8 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/0x524A/onvif-go"
|
"github.com/0x524a/onvif-go"
|
||||||
"github.com/0x524A/onvif-go/discovery"
|
"github.com/0x524a/onvif-go/discovery"
|
||||||
)
|
)
|
||||||
|
|
||||||
type CLI struct {
|
type CLI struct {
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/0x524A/onvif-go"
|
"github.com/0x524a/onvif-go"
|
||||||
"github.com/0x524A/onvif-go/discovery"
|
"github.com/0x524a/onvif-go/discovery"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import (
|
|||||||
"syscall"
|
"syscall"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/0x524A/onvif-go/server"
|
"github.com/0x524a/onvif-go/server"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"encoding/xml"
|
"encoding/xml"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/0x524A/onvif-go/internal/soap"
|
"github.com/0x524a/onvif-go/internal/soap"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Device service namespace
|
// Device service namespace
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ onvif-go/
|
|||||||
```
|
```
|
||||||
|
|
||||||
**Design Rationale:**
|
**Design Rationale:**
|
||||||
- **Root-level API**: Main package at root for clean imports (`github.com/0x524A/onvif-go`)
|
- **Root-level API**: Main package at root for clean imports (`github.com/0x524a/onvif-go`)
|
||||||
- **internal/**: Private packages not intended for external use (SOAP implementation)
|
- **internal/**: Private packages not intended for external use (SOAP implementation)
|
||||||
- **Subpackages**: Additional features like `discovery/` and `server/`
|
- **Subpackages**: Additional features like `discovery/` and `server/`
|
||||||
- **cmd/**: Executable applications and tools
|
- **cmd/**: Executable applications and tools
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ We have successfully created a **comprehensive, production-ready Go ONVIF librar
|
|||||||
|
|
||||||
### Basic Library Usage
|
### Basic Library Usage
|
||||||
```go
|
```go
|
||||||
import "github.com/0x524A/onvif-go"
|
import "github.com/0x524a/onvif-go"
|
||||||
|
|
||||||
client, err := onvif.NewClient(
|
client, err := onvif.NewClient(
|
||||||
"http://192.168.1.100/onvif/device_service",
|
"http://192.168.1.100/onvif/device_service",
|
||||||
|
|||||||
+12
-12
@@ -85,7 +85,7 @@ onvif-go/
|
|||||||
As a **library package**, the main API lives at the root level:
|
As a **library package**, the main API lives at the root level:
|
||||||
|
|
||||||
```go
|
```go
|
||||||
import "github.com/0x524A/onvif-go"
|
import "github.com/0x524a/onvif-go"
|
||||||
|
|
||||||
client, err := onvif.NewClient("192.168.1.100")
|
client, err := onvif.NewClient("192.168.1.100")
|
||||||
```
|
```
|
||||||
@@ -102,7 +102,7 @@ The `internal/` directory contains implementation details not intended for exter
|
|||||||
|
|
||||||
```go
|
```go
|
||||||
// This import is ONLY available within onvif-go:
|
// This import is ONLY available within onvif-go:
|
||||||
import "github.com/0x524A/onvif-go/internal/soap"
|
import "github.com/0x524a/onvif-go/internal/soap"
|
||||||
```
|
```
|
||||||
|
|
||||||
**Go's internal package restriction:**
|
**Go's internal package restriction:**
|
||||||
@@ -122,10 +122,10 @@ Public subpackages for optional or specialized functionality:
|
|||||||
|
|
||||||
```go
|
```go
|
||||||
// Discovery subpackage
|
// Discovery subpackage
|
||||||
import "github.com/0x524A/onvif-go/discovery"
|
import "github.com/0x524a/onvif-go/discovery"
|
||||||
|
|
||||||
// Server subpackage
|
// Server subpackage
|
||||||
import "github.com/0x524A/onvif-go/server"
|
import "github.com/0x524a/onvif-go/server"
|
||||||
```
|
```
|
||||||
|
|
||||||
**When to create a subpackage:**
|
**When to create a subpackage:**
|
||||||
@@ -148,7 +148,7 @@ cmd/
|
|||||||
**Naming convention:**
|
**Naming convention:**
|
||||||
- Directory name = binary name
|
- Directory name = binary name
|
||||||
- Each cmd has its own `main.go`
|
- Each cmd has its own `main.go`
|
||||||
- Can import the library: `import "github.com/0x524A/onvif-go"`
|
- Can import the library: `import "github.com/0x524a/onvif-go"`
|
||||||
|
|
||||||
**Build commands:**
|
**Build commands:**
|
||||||
```bash
|
```bash
|
||||||
@@ -191,7 +191,7 @@ Comprehensive documentation in `docs/` directory:
|
|||||||
|
|
||||||
```go
|
```go
|
||||||
// Main client functionality
|
// Main client functionality
|
||||||
import "github.com/0x524A/onvif-go"
|
import "github.com/0x524a/onvif-go"
|
||||||
|
|
||||||
client, err := onvif.NewClient("192.168.1.100",
|
client, err := onvif.NewClient("192.168.1.100",
|
||||||
onvif.WithCredentials("admin", "password"),
|
onvif.WithCredentials("admin", "password"),
|
||||||
@@ -202,7 +202,7 @@ client, err := onvif.NewClient("192.168.1.100",
|
|||||||
|
|
||||||
```go
|
```go
|
||||||
// Device discovery
|
// Device discovery
|
||||||
import "github.com/0x524A/onvif-go/discovery"
|
import "github.com/0x524a/onvif-go/discovery"
|
||||||
|
|
||||||
devices, err := discovery.Discover(ctx, 5*time.Second)
|
devices, err := discovery.Discover(ctx, 5*time.Second)
|
||||||
```
|
```
|
||||||
@@ -211,7 +211,7 @@ devices, err := discovery.Discover(ctx, 5*time.Second)
|
|||||||
|
|
||||||
```go
|
```go
|
||||||
// Virtual ONVIF server
|
// Virtual ONVIF server
|
||||||
import "github.com/0x524A/onvif-go/server"
|
import "github.com/0x524a/onvif-go/server"
|
||||||
|
|
||||||
srv := server.NewServer(
|
srv := server.NewServer(
|
||||||
server.WithCredentials("admin", "admin"),
|
server.WithCredentials("admin", "admin"),
|
||||||
@@ -223,7 +223,7 @@ srv := server.NewServer(
|
|||||||
|
|
||||||
```go
|
```go
|
||||||
// Only usable within onvif-go itself
|
// Only usable within onvif-go itself
|
||||||
import "github.com/0x524A/onvif-go/internal/soap"
|
import "github.com/0x524a/onvif-go/internal/soap"
|
||||||
|
|
||||||
// External projects CANNOT import internal packages
|
// External projects CANNOT import internal packages
|
||||||
```
|
```
|
||||||
@@ -327,12 +327,12 @@ my-app/
|
|||||||
|
|
||||||
**Old:**
|
**Old:**
|
||||||
```go
|
```go
|
||||||
import "github.com/0x524A/onvif-go/soap"
|
import "github.com/0x524a/onvif-go/soap"
|
||||||
```
|
```
|
||||||
|
|
||||||
**New:**
|
**New:**
|
||||||
```go
|
```go
|
||||||
import "github.com/0x524A/onvif-go/internal/soap"
|
import "github.com/0x524a/onvif-go/internal/soap"
|
||||||
```
|
```
|
||||||
|
|
||||||
**External users:** No changes needed (they never imported soap directly)
|
**External users:** No changes needed (they never imported soap directly)
|
||||||
@@ -341,7 +341,7 @@ import "github.com/0x524A/onvif-go/internal/soap"
|
|||||||
|
|
||||||
### For Library Users
|
### For Library Users
|
||||||
|
|
||||||
1. **Simple imports**: `import "github.com/0x524A/onvif-go"`
|
1. **Simple imports**: `import "github.com/0x524a/onvif-go"`
|
||||||
2. **Clear API**: Public vs private clearly separated
|
2. **Clear API**: Public vs private clearly separated
|
||||||
3. **Stable interface**: Internal changes don't affect users
|
3. **Stable interface**: Internal changes don't affect users
|
||||||
4. **Good documentation**: Examples and docs organized
|
4. **Good documentation**: Examples and docs organized
|
||||||
|
|||||||
@@ -191,7 +191,7 @@ Tested/compatible with major brands:
|
|||||||
## Usage Example
|
## Usage Example
|
||||||
|
|
||||||
```go
|
```go
|
||||||
import "github.com/0x524A/onvif-go"
|
import "github.com/0x524a/onvif-go"
|
||||||
|
|
||||||
// Create client
|
// Create client
|
||||||
client, _ := onvif.NewClient(
|
client, _ := onvif.NewClient(
|
||||||
@@ -255,7 +255,7 @@ go-onvif/
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Install
|
# Install
|
||||||
go get github.com/0x524A/onvif-go
|
go get github.com/0x524a/onvif-go
|
||||||
|
|
||||||
# Run discovery example
|
# Run discovery example
|
||||||
cd examples/discovery
|
cd examples/discovery
|
||||||
@@ -296,4 +296,4 @@ This library is a complete refactoring and modernization inspired by the origina
|
|||||||
|
|
||||||
**Status**: ✅ Production Ready (v0.1.0)
|
**Status**: ✅ Production Ready (v0.1.0)
|
||||||
**Last Updated**: October 2025
|
**Last Updated**: October 2025
|
||||||
**Maintainer**: 0x524A
|
**Maintainer**: 0x524a
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import (
|
|||||||
"log"
|
"log"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/0x524A/onvif-go"
|
"github.com/0x524a/onvif-go"
|
||||||
"github.com/0x524A/onvif-go/discovery"
|
"github.com/0x524a/onvif-go/discovery"
|
||||||
)
|
)
|
||||||
|
|
||||||
// This is a comprehensive demonstration of all go-onvif features
|
// This is a comprehensive demonstration of all go-onvif features
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"log"
|
"log"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/0x524A/onvif-go"
|
"github.com/0x524a/onvif-go"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"log"
|
"log"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/0x524A/onvif-go"
|
"github.com/0x524a/onvif-go"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import (
|
|||||||
"log"
|
"log"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/0x524A/onvif-go"
|
"github.com/0x524a/onvif-go"
|
||||||
"github.com/0x524A/onvif-go/discovery"
|
"github.com/0x524a/onvif-go/discovery"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"log"
|
"log"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/0x524A/onvif-go/discovery"
|
"github.com/0x524a/onvif-go/discovery"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"log"
|
"log"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/0x524A/onvif-go/discovery"
|
"github.com/0x524a/onvif-go/discovery"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"log"
|
"log"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/0x524A/onvif-go"
|
"github.com/0x524a/onvif-go"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import (
|
|||||||
"syscall"
|
"syscall"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/0x524A/onvif-go/server"
|
"github.com/0x524a/onvif-go/server"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"log"
|
"log"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/0x524A/onvif-go"
|
"github.com/0x524a/onvif-go"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
"github.com/0x524A/onvif-go/server"
|
"github.com/0x524a/onvif-go/server"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"log"
|
"log"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/0x524A/onvif-go"
|
"github.com/0x524a/onvif-go"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/0x524A/onvif-go"
|
"github.com/0x524a/onvif-go"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"log"
|
"log"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/0x524A/onvif-go"
|
"github.com/0x524a/onvif-go"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import (
|
|||||||
"log"
|
"log"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/0x524A/onvif-go"
|
"github.com/0x524a/onvif-go"
|
||||||
"github.com/0x524A/onvif-go/server"
|
"github.com/0x524a/onvif-go/server"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
module github.com/0x524A/onvif-go
|
module github.com/0x524a/onvif-go
|
||||||
|
|
||||||
go 1.21
|
go 1.21
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@ import (
|
|||||||
"encoding/xml"
|
"encoding/xml"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/0x524A/onvif-go/internal/soap"
|
"github.com/0x524a/onvif-go/internal/soap"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Imaging service namespace
|
// Imaging service namespace
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"encoding/xml"
|
"encoding/xml"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/0x524A/onvif-go/internal/soap"
|
"github.com/0x524a/onvif-go/internal/soap"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Media service namespace
|
// Media service namespace
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"encoding/xml"
|
"encoding/xml"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/0x524A/onvif-go/internal/soap"
|
"github.com/0x524a/onvif-go/internal/soap"
|
||||||
)
|
)
|
||||||
|
|
||||||
// PTZ service namespace
|
// PTZ service namespace
|
||||||
|
|||||||
@@ -213,7 +213,7 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"github.com/0x524A/onvif-go/server"
|
"github.com/0x524a/onvif-go/server"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|||||||
+5
-5
@@ -41,7 +41,7 @@ A complete ONVIF-compliant server implementation that simulates multi-lens IP ca
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Clone the repository (if not already done)
|
# Clone the repository (if not already done)
|
||||||
git clone https://github.com/0x524A/onvif-go
|
git clone https://github.com/0x524a/onvif-go
|
||||||
cd go-onvif
|
cd go-onvif
|
||||||
|
|
||||||
# Build the server CLI
|
# Build the server CLI
|
||||||
@@ -128,7 +128,7 @@ import (
|
|||||||
"log"
|
"log"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/0x524A/onvif-go/server"
|
"github.com/0x524a/onvif-go/server"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
@@ -164,7 +164,7 @@ import (
|
|||||||
"log"
|
"log"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/0x524A/onvif-go/server"
|
"github.com/0x524a/onvif-go/server"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
@@ -251,7 +251,7 @@ import (
|
|||||||
"log"
|
"log"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/0x524A/onvif-go"
|
"github.com/0x524a/onvif-go"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
@@ -430,7 +430,7 @@ This project is licensed under the MIT License - see the [LICENSE](../../LICENSE
|
|||||||
|
|
||||||
## Acknowledgments
|
## Acknowledgments
|
||||||
|
|
||||||
- Built on top of the [go-onvif](https://github.com/0x524A/onvif-go) client library
|
- Built on top of the [go-onvif](https://github.com/0x524a/onvif-go) client library
|
||||||
- ONVIF specifications from [ONVIF.org](https://www.onvif.org)
|
- ONVIF specifications from [ONVIF.org](https://www.onvif.org)
|
||||||
- Inspired by the need for flexible camera simulation in development workflows
|
- Inspired by the need for flexible camera simulation in development workflows
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/0x524A/onvif-go/server/soap"
|
"github.com/0x524a/onvif-go/server/soap"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Device service SOAP message types
|
// Device service SOAP message types
|
||||||
|
|||||||
+1
-1
@@ -6,7 +6,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/0x524A/onvif-go/server/soap"
|
"github.com/0x524a/onvif-go/server/soap"
|
||||||
)
|
)
|
||||||
|
|
||||||
// New creates a new ONVIF server with the given configuration
|
// New creates a new ONVIF server with the given configuration
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
originsoap "github.com/0x524A/onvif-go/internal/soap"
|
originsoap "github.com/0x524a/onvif-go/internal/soap"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Handler handles incoming SOAP requests
|
// Handler handles incoming SOAP requests
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/0x524A/onvif-go"
|
"github.com/0x524a/onvif-go"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Config represents the ONVIF server configuration
|
// Config represents the ONVIF server configuration
|
||||||
|
|||||||
+1
-1
@@ -6,7 +6,7 @@ import (
|
|||||||
"log"
|
"log"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/0x524A/onvif-go"
|
"github.com/0x524a/onvif-go"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/0x524A/onvif-go"
|
"github.com/0x524a/onvif-go"
|
||||||
onviftesting "github.com/0x524A/onvif-go/testing"
|
onviftesting "github.com/0x524a/onvif-go/testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
// TestBosch_FLEXIDOME_indoor_5100i_IR_8710066 tests ONVIF client against Bosch_FLEXIDOME_indoor_5100i_IR_8.71.0066 captured responses
|
// TestBosch_FLEXIDOME_indoor_5100i_IR_8710066 tests ONVIF client against Bosch_FLEXIDOME_indoor_5100i_IR_8.71.0066 captured responses
|
||||||
|
|||||||
+1
-1
@@ -6,7 +6,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/0x524A/onvif-go"
|
"github.com/0x524a/onvif-go"
|
||||||
)
|
)
|
||||||
|
|
||||||
// TestEnhancedDeviceFeatures tests new Device service methods with real camera data
|
// TestEnhancedDeviceFeatures tests new Device service methods with real camera data
|
||||||
|
|||||||
Reference in New Issue
Block a user