X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Fcontrol%2Ftypes.go;h=c8c09dca0f79ad0a63a57d0210d59212f8613c0f;hb=268d715e3bceab8f7955d89945141efdb2c3b368;hp=febd41a2a3422790e4c861e90222a47f78d01e2d;hpb=47b842bf6afc45313a0edadc78f87bff06ddf2b4;p=ric-plt%2Fsubmgr.git diff --git a/pkg/control/types.go b/pkg/control/types.go index febd41a..c8c09dc 100644 --- a/pkg/control/types.go +++ b/pkg/control/types.go @@ -19,21 +19,25 @@ package control -type RmrDatagram struct { - MessageType int - SubscriptionId uint16 - Payload []byte +import ( + "gerrit.o-ran-sc.org/r/ric-plt/e2ap/pkg/e2ap" +) + +//----------------------------------------------------------------------------- +// +//----------------------------------------------------------------------------- +type RequestId struct { + e2ap.RequestId } -type SubRouteInfo struct { - Command Action - Address string - Port uint16 - SubID uint16 +func (rid *RequestId) String() string { + return "reqid(" + rid.RequestId.String() + ")" } -type RmrEndpoint struct { - Addr string // xapp addr - Port uint16 // xapp port +type Sdlnterface interface { + Set(pairs ...interface{}) error + Get(keys []string) (map[string]interface{}, error) + GetAll() ([]string, error) + Remove(keys []string) error + RemoveAll() error } -type Action int