X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Fresthooks%2Ftypes.go;h=f2af972059103f786fbf2acb1a81933ac108cfd2;hb=d3aa5b98789c65107e5ac41fc5be11f08acf11d8;hp=2229abe15b574e2b08a0f6a22e1fd27bffb6065c;hpb=2a4099785bcc1dda74d5192f93f69b33533585b3;p=ric-plt%2Fappmgr.git diff --git a/pkg/resthooks/types.go b/pkg/resthooks/types.go index 2229abe..f2af972 100755 --- a/pkg/resthooks/types.go +++ b/pkg/resthooks/types.go @@ -20,7 +20,6 @@ package resthooks import ( - sdl "gerrit.o-ran-sc.org/r/ric-plt/sdlgo" cmap "github.com/orcaman/concurrent-map" "net/http" @@ -36,7 +35,7 @@ type SubscriptionInfo struct { type Resthook struct { client *http.Client subscriptions cmap.ConcurrentMap - db *sdl.SdlInstance + db iSdl Seq int64 } @@ -47,3 +46,10 @@ type SubscriptionNotification struct { 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 +}