mirror of
https://github.com/kerberos-io/onvif.git
synced 2025-10-06 08:16:56 +08:00
25 lines
269 B
Go
25 lines
269 B
Go
package goonvif
|
|
|
|
import "net"
|
|
|
|
type Device struct {
|
|
|
|
xaddr net.IP
|
|
login string
|
|
password string
|
|
|
|
token [64]uint8
|
|
}
|
|
|
|
type Service struct {
|
|
name string
|
|
|
|
device *Device
|
|
}
|
|
|
|
func NewService(name string, dev *Device) Service {
|
|
return Service{name:name, device:dev}
|
|
}
|
|
|
|
|