X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Fcontrol%2Ftypes.go;h=c8c09dca0f79ad0a63a57d0210d59212f8613c0f;hb=afbf95f5756a7b781859beb1e68b41f7319ed208;hp=5f46e6576fa1c25d6ef80b228463c314284a30c9;hpb=4511475f03107eb53c88545649898e3cfbcc2765;p=ric-plt%2Fsubmgr.git diff --git a/pkg/control/types.go b/pkg/control/types.go index 5f46e65..c8c09dc 100644 --- a/pkg/control/types.go +++ b/pkg/control/types.go @@ -19,14 +19,25 @@ package control -type RmrPayload struct { - MessageType int - SubscriptionId int - Content string +import ( + "gerrit.o-ran-sc.org/r/ric-plt/e2ap/pkg/e2ap" +) + +//----------------------------------------------------------------------------- +// +//----------------------------------------------------------------------------- +type RequestId struct { + e2ap.RequestId +} + +func (rid *RequestId) String() string { + return "reqid(" + rid.RequestId.String() + ")" } -type RmrDatagram struct { - MessageType int - SubscriptionId int - Payload []byte +type Sdlnterface interface { + Set(pairs ...interface{}) error + Get(keys []string) (map[string]interface{}, error) + GetAll() ([]string, error) + Remove(keys []string) error + RemoveAll() error }