X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=a1-go%2Fpkg%2Fresthooks%2Ftypes.go;h=4765e294327fe23b141d859f0bf97bcf781b13e6;hb=b513650252f1a739e3e9e2d02f2598d506aa86cf;hp=778cb1782a3970c517ac63ecc890f1d216007775;hpb=327d9dba437b30a06161d4f21cc2a33034d75bac;p=ric-plt%2Fa1.git diff --git a/a1-go/pkg/resthooks/types.go b/a1-go/pkg/resthooks/types.go index 778cb17..4765e29 100644 --- a/a1-go/pkg/resthooks/types.go +++ b/a1-go/pkg/resthooks/types.go @@ -20,10 +20,23 @@ */ 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) + 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 }