From 2b91fc728fd9f8d19a53322a4ceae3019a42f193 Mon Sep 17 00:00:00 2001 From: Radhi Fadlillah Date: Wed, 17 May 2017 05:17:50 +0700 Subject: [PATCH] Separate model to other file --- device.go | 9 --------- model.go | 10 ++++++++++ 2 files changed, 10 insertions(+), 9 deletions(-) create mode 100644 model.go diff --git a/device.go b/device.go index 4cf1c50..7249f55 100644 --- a/device.go +++ b/device.go @@ -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 diff --git a/model.go b/model.go new file mode 100644 index 0000000..832f0e8 --- /dev/null +++ b/model.go @@ -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 +}