Code Review
/
ric-plt
/
appmgr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Improve appmgr UT coverage
[ric-plt/appmgr.git]
/
pkg
/
resthooks
/
types.go
diff --git
a/pkg/resthooks/types.go
b/pkg/resthooks/types.go
index
2229abe
..
f2af972
100755
(executable)
--- a/
pkg/resthooks/types.go
+++ b/
pkg/resthooks/types.go
@@
-20,7
+20,6
@@
package resthooks
import (
package resthooks
import (
- sdl "gerrit.o-ran-sc.org/r/ric-plt/sdlgo"
cmap "github.com/orcaman/concurrent-map"
"net/http"
cmap "github.com/orcaman/concurrent-map"
"net/http"
@@
-36,7
+35,7
@@
type SubscriptionInfo struct {
type Resthook struct {
client *http.Client
subscriptions cmap.ConcurrentMap
type Resthook struct {
client *http.Client
subscriptions cmap.ConcurrentMap
- db
*sdl.SdlInstance
+ db
iSdl
Seq int64
}
Seq int64
}
@@
-47,3
+46,10
@@
type SubscriptionNotification struct {
Version int64 `json:"version,omitempty"`
XApps string `json:"xApps,omitempty"`
}
Version int64 `json:"version,omitempty"`
XApps string `json:"xApps,omitempty"`
}
+
+type iSdl interface {
+ Set(pairs ...interface{}) error
+ Get(keys []string) (map[string]interface{}, error)
+ GetAll() ([]string, error)
+ RemoveAll() error
+}