rename imports

This commit is contained in:
cedricve
2021-06-04 21:51:49 +02:00
parent af24622015
commit 37d8a71395
21 changed files with 67 additions and 36 deletions

8
.idea/.gitignore generated vendored Normal file
View File

@@ -0,0 +1,8 @@
# Default ignored files
/shelf/
/workspace.xml
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml
# Editor-based HTTP Client requests
/httpRequests/

8
.idea/modules.xml generated Normal file
View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/onvif.iml" filepath="$PROJECT_DIR$/.idea/onvif.iml" />
</modules>
</component>
</project>

9
.idea/onvif.iml generated Normal file
View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="Go" enabled="true" />
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

6
.idea/vcs.xml generated Normal file
View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

View File

@@ -12,10 +12,10 @@ import (
"strings"
"github.com/beevik/etree"
"github.com/use-go/onvif/device"
"github.com/use-go/onvif/gosoap"
"github.com/use-go/onvif/networking"
wsdiscovery "github.com/use-go/onvif/ws-discovery"
"github.com/kerberos-io/onvif/device"
"github.com/kerberos-io/onvif/gosoap"
"github.com/kerberos-io/onvif/networking"
wsdiscovery "github.com/kerberos-io/onvif/ws-discovery"
)
//Xlmns XML Scheam

View File

@@ -1,8 +1,8 @@
package imaging
import (
"github.com/use-go/onvif/xsd"
"github.com/use-go/onvif/xsd/onvif"
"github.com/kerberos-io/onvif/xsd"
"github.com/kerberos-io/onvif/xsd/onvif"
)
type GetServiceCapabilities struct {

View File

@@ -7,7 +7,7 @@ Simple management of onvif IP-devices cameras. onvif is an implementation of ON
To install the library, use **go get**:
```go
go get github.com/use-go/onvif
go get github.com/kerberos-io/onvif
```

View File

@@ -1,8 +1,8 @@
package analytics
import (
"github.com/use-go/onvif/xsd"
"github.com/use-go/onvif/xsd/onvif"
"github.com/kerberos-io/onvif/xsd"
"github.com/kerberos-io/onvif/xsd/onvif"
)
type GetSupportedRules struct {

View File

@@ -12,10 +12,10 @@ import (
"github.com/beevik/etree"
"github.com/gin-gonic/gin"
"github.com/use-go/onvif"
"github.com/use-go/onvif/gosoap"
"github.com/use-go/onvif/networking"
wsdiscovery "github.com/use-go/onvif/ws-discovery"
"github.com/kerberos-io/onvif"
"github.com/kerberos-io/onvif/gosoap"
"github.com/kerberos-io/onvif/networking"
wsdiscovery "github.com/kerberos-io/onvif/ws-discovery"
)
func RunApi() {

View File

@@ -3,9 +3,9 @@ package api
import (
"errors"
"github.com/use-go/onvif/device"
"github.com/use-go/onvif/media"
"github.com/use-go/onvif/ptz"
"github.com/kerberos-io/onvif/device"
"github.com/kerberos-io/onvif/media"
"github.com/kerberos-io/onvif/ptz"
)
func getPTZStructByName(name string) (interface{}, error) {

View File

@@ -1,8 +1,8 @@
package device
import (
"github.com/use-go/onvif/xsd"
"github.com/use-go/onvif/xsd/onvif"
"github.com/kerberos-io/onvif/xsd"
"github.com/kerberos-io/onvif/xsd/onvif"
)
type Service struct {

View File

@@ -1,7 +1,7 @@
package event
import (
"github.com/use-go/onvif/xsd"
"github.com/kerberos-io/onvif/xsd"
)
//GetServiceCapabilities action

View File

@@ -1,7 +1,7 @@
package event
import (
"github.com/use-go/onvif/xsd"
"github.com/kerberos-io/onvif/xsd"
)
//Address Alias

View File

@@ -6,10 +6,10 @@ import (
"log"
"net/http"
goonvif "github.com/use-go/onvif"
"github.com/use-go/onvif/device"
"github.com/use-go/onvif/gosoap"
"github.com/use-go/onvif/xsd/onvif"
goonvif "github.com/kerberos-io/onvif"
"github.com/kerberos-io/onvif/device"
"github.com/kerberos-io/onvif/gosoap"
"github.com/kerberos-io/onvif/xsd/onvif"
)
const (
@@ -65,7 +65,7 @@ func main() {
log.Println(err)
} else {
/*
You could use https://github.com/use-go/onvif/gosoap for pretty printing response
You could use https://github.com/kerberos-io/onvif/gosoap for pretty printing response
*/
fmt.Println(gosoap.SoapMessage(readResponse(createUserResponse)).StringIndent())
}

View File

@@ -10,9 +10,9 @@ import (
"testing"
"github.com/beevik/etree"
"github.com/use-go/onvif"
"github.com/use-go/onvif/device"
discover "github.com/use-go/onvif/ws-discovery"
"github.com/kerberos-io/onvif"
"github.com/kerberos-io/onvif/device"
discover "github.com/kerberos-io/onvif/ws-discovery"
)
func TestGetAvailableDevicesAtSpecificEthernetInterface(t *testing.T) {

2
go.mod
View File

@@ -1,4 +1,4 @@
module github.com/use-go/onvif
module github.com/kerberos-io/onvif
go 1.15

View File

@@ -1,8 +1,8 @@
package media
import (
"github.com/use-go/onvif/xsd"
"github.com/use-go/onvif/xsd/onvif"
"github.com/kerberos-io/onvif/xsd"
"github.com/kerberos-io/onvif/xsd/onvif"
)
type Capabilities struct {

View File

@@ -1,8 +1,8 @@
package ptz
import (
"github.com/use-go/onvif/xsd"
"github.com/use-go/onvif/xsd/onvif"
"github.com/kerberos-io/onvif/xsd"
"github.com/kerberos-io/onvif/xsd/onvif"
)
type Capabilities struct {

View File

@@ -4,7 +4,7 @@ import (
"strings"
"github.com/beevik/etree"
"github.com/use-go/onvif/gosoap"
"github.com/kerberos-io/onvif/gosoap"
)
func buildProbeMessage(uuidV4 string, scopes, types []string, nmsp map[string]string) gosoap.SoapMessage {

View File

@@ -11,7 +11,7 @@ import (
"strings"
"time"
"github.com/use-go/onvif/xsd/iso8601"
"github.com/kerberos-io/onvif/xsd/iso8601"
)
/*

View File

@@ -1,7 +1,7 @@
package onvif
import (
"github.com/use-go/onvif/xsd"
"github.com/kerberos-io/onvif/xsd"
)
// BUG(r): Enum types implemented as simple string