X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=a1-go%2Fpkg%2Fresthooks%2Ftypes.go;h=2eb2f6d88b264ada987eaf6039268486364a0d62;hb=9f4fe4d725c9ad77ea1c2ab565ce5759e8a932a6;hp=83028743e9068c8ce051790e68709c2b15cc036a;hpb=3ad6de4df1dfe70e467064e6477f2e6068e87048;p=ric-plt%2Fa1.git diff --git a/a1-go/pkg/resthooks/types.go b/a1-go/pkg/resthooks/types.go index 8302874..2eb2f6d 100644 --- a/a1-go/pkg/resthooks/types.go +++ b/a1-go/pkg/resthooks/types.go @@ -20,14 +20,24 @@ */ package resthooks +import ( + "gerrit.o-ran-sc.org/r/ric-plt/a1/pkg/rmr" + "gerrit.o-ran-sc.org/r/ric-plt/xapp-frame/pkg/xapp" +) + 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) Get(string, []string) (map[string]interface{}, error) SetIf(ns string, key string, oldData, newData interface{}) (bool, error) Set(ns string, pairs ...interface{}) error + Remove(ns string, keys []string) error +} + +type iRMRClient interface { + SendMsg(params *xapp.RMRParams) bool }