X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=control%2FrcTypes.go;h=4ce92e30742a444415445d2bfdd920e867173b91;hb=4b19ef4f1f44f9d25de49463783ebee19f754047;hp=7e9f73e126a9ff25b6562b4d23857164052044ed;hpb=21b61dd76570beb43afc74289296e831914d9060;p=ric-app%2Frc.git diff --git a/control/rcTypes.go b/control/rcTypes.go index 7e9f73e..4ce92e3 100644 --- a/control/rcTypes.go +++ b/control/rcTypes.go @@ -1,9 +1,10 @@ package control import ( - "gerrit.o-ran-sc.org/r/ric-plt/xapp-frame/pkg/xapp" - rc "gerrit.o-ran-sc.org/r/scp/ric-app/protocol/grpc/ricmsgcommrpc/rc" "sync" + + rc "gerrit.o-ran-sc.org/r/ric-app/rc/protocol/grpc/ricmsgcommrpc/rc" + "gerrit.o-ran-sc.org/r/ric-plt/xapp-frame/pkg/xapp" ) const MAX_CONTROL_REQ_ATTEMPTS = 2 @@ -22,10 +23,10 @@ const GRPC_SUCCESS = 0 const GRPC_ERROR = -1 type Control struct { - eventRicControlReqTimePeriod int32 //maximum time for the RIC Subscription Request event creation procedure in the E2 Node + eventRicControlReqTimePeriod int32 //maximum time for the RIC Control Request creation procedure in the E2 Node rcChan chan *xapp.RMRParams //channel for receiving rmr message - eventRicControlReqExpiredMap map[int]bool //map for recording the RIC Subscription Request event creation procedure is expired or not - eventRicControlReqExpiredMu *sync.Mutex //mutex for eventCreateExpiredMap + eventRicControlReqExpiredMap map[int]bool //map for recording the RIC Control Request event creation procedure is expired or not + eventRicControlReqExpiredMu *sync.Mutex //mutex for eventCreateExpiredMap ricRequestInstanceID int } @@ -33,3 +34,70 @@ type RicHoControlMsg struct { RicControlGrpcReqPtr *rc.RicControlGrpcReq } + +type UEid struct { + amf_UE_NGAP_Id int64 + pLMNIdentitybuf string + aMFRegionIDbuf string + aMFSetIDbuf string + aMFPointerbuf string + F1AP_id []int64 + E1AP_id []int64 +} + +type ValueInt int64 + +type valueReal float64 + +type Null int32 + +type PrintableString OctetString + +type OctetString struct { + Buf []byte + Size int +} + +type BitString struct { + Buf []byte + Size int + BitsUnused int +} + +type ControlAckMsg struct { + RequestID int32 + InstanceId int32 + FuncID int32 + CallProcessID []byte + CallProcessIDLength int32 + ControlOutcome []byte + ControlOutcomeLength int32 +} + +type ControlOutcomeFormat1ItemType struct { + RanParameterID int64 + RANParameterValueType int + RANParameterValue interface{} +} + +type ControlOutcomeFormat1 struct { + ControlOutcomeFormat1Item []ControlOutcomeFormat1ItemType + ControlOutcomeFormat1ItemCount int +} + +type ControlOutcomeMsg struct { + ControlOutcomeType int32 + ControlOutcome interface{} +} + +type ControlFailureMsg struct { + RequestID int32 + InstanceId int32 + FuncID int32 + CallProcessID []byte + CallProcessIDLength int32 + CauseType int32 + CauseValue int64 + ControlOutcome []byte + ControlOutcomeLength int32 +}