X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Fcontrol%2Ftypes.go;h=c8c09dca0f79ad0a63a57d0210d59212f8613c0f;hb=6d629ad71687993ee08b6193e957439f5c87aa22;hp=d12233c08107a0fa69daf03579331419d8942f14;hpb=e00186861608731e2390055a0e1b1cf455670508;p=ric-plt%2Fsubmgr.git diff --git a/pkg/control/types.go b/pkg/control/types.go index d12233c..c8c09dc 100644 --- a/pkg/control/types.go +++ b/pkg/control/types.go @@ -20,33 +20,24 @@ package control import ( - "gerrit.o-ran-sc.org/r/ric-plt/xapp-frame/pkg/xapp" + "gerrit.o-ran-sc.org/r/ric-plt/e2ap/pkg/e2ap" ) -type RmrDatagram struct { - MessageType int - SubscriptionId uint16 - Payload []byte +//----------------------------------------------------------------------------- +// +//----------------------------------------------------------------------------- +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 Action int - -type Transaction_key struct { - SubID uint16 - trans_type Action -} - -type Transaction struct { -// Xapp_address string - Xapp_instance_address string - Xapp_port uint16 - Ric_sub_req []byte - Mbuf *xapp.RMRMbuf +type Sdlnterface interface { + Set(pairs ...interface{}) error + Get(keys []string) (map[string]interface{}, error) + GetAll() ([]string, error) + Remove(keys []string) error + RemoveAll() error }