A1 to send policy instance data via RMR
[ric-plt/a1.git] / a1-go / pkg / resthooks / types.go
index 8302874..01f4258 100644 (file)
 */
 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
+}