X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=a1-go%2Fpkg%2Fresthooks%2Ftypes.go;fp=a1-go%2Fpkg%2Fresthooks%2Ftypes.go;h=01f425897b0db914800950ba7ca5a97030d4f0b9;hb=1a41ce75dbf508ae4d85c2dc4a562f36da04bb65;hp=83028743e9068c8ce051790e68709c2b15cc036a;hpb=6242a3ff1b95eb8fc89931b11115ec9c06d08e96;p=ric-plt%2Fa1.git diff --git a/a1-go/pkg/resthooks/types.go b/a1-go/pkg/resthooks/types.go index 8302874..01f4258 100644 --- a/a1-go/pkg/resthooks/types.go +++ b/a1-go/pkg/resthooks/types.go @@ -20,10 +20,14 @@ */ package resthooks +import ( + "gerrit.o-ran-sc.org/r/ric-plt/a1/pkg/rmr" +) + type Resthook struct { - db iSdl + db iSdl + iRmrSenderInst rmr.IRmrSender } - type iSdl interface { GetAll(string) ([]string, error) SetIfNotExists(ns string, key string, data interface{}) (bool, error) @@ -31,3 +35,7 @@ type iSdl interface { SetIf(ns string, key string, oldData, newData interface{}) (bool, error) Set(ns string, pairs ...interface{}) error } + +type iRMRClient interface { + SendMsg(params *xapp.RMRParams) bool +}