Separate model to other file

This commit is contained in:
Radhi Fadlillah
2017-05-17 05:17:50 +07:00
parent e1f24a0447
commit 2b91fc728f
2 changed files with 10 additions and 9 deletions

View File

@@ -5,15 +5,6 @@ var deviceXMLNs = []string{
`xmlns:tt="http://www.onvif.org/ver10/schema"`,
}
// Device contains data of ONVIF camera
type Device struct {
ID string
Name string
XAddr string
User string
Password string
}
// GetSystemDateAndTime fetch date and time from ONVIF camera
func (device Device) GetSystemDateAndTime() (string, error) {
// Create SOAP

10
model.go Normal file
View File

@@ -0,0 +1,10 @@
package onvif
// Device contains data of ONVIF camera
type Device struct {
ID string
Name string
XAddr string
User string
Password string
}