7e9f73e126a9ff25b6562b4d23857164052044ed
[ric-app/rc.git] / control / rcTypes.go
1 package control\r
2 \r
3 import (\r
4         "gerrit.o-ran-sc.org/r/ric-plt/xapp-frame/pkg/xapp"\r
5         rc "gerrit.o-ran-sc.org/r/scp/ric-app/protocol/grpc/ricmsgcommrpc/rc"\r
6         "sync"\r
7 )\r
8 \r
9 const MAX_CONTROL_REQ_ATTEMPTS = 2\r
10 const RIC_CONTROL_STYLE_TYPE = 3\r
11 const RIC_CONTROL_ACTION_ID = 1\r
12 \r
13 const TIME_NANOSEC = 1000000000\r
14 \r
15 const RIC_CONTROL_TARGET_PRIMARY_CELL = 1\r
16 const RIC_CONTROL_TARGET_CELL = 2\r
17 const RIC_CONTROL_CELL_TYPE = 3\r
18 const RIC_CONTROL_CGI_TYPE = 4\r
19 \r
20 //GRPC rsp codes\r
21 const GRPC_SUCCESS = 0\r
22 const GRPC_ERROR = -1\r
23 \r
24 type Control struct {\r
25         eventRicControlReqTimePeriod int32                //maximum time for the RIC Subscription Request event creation procedure in the E2 Node\r
26         rcChan                       chan *xapp.RMRParams //channel for receiving rmr message\r
27         eventRicControlReqExpiredMap map[int]bool //map for recording the RIC Subscription Request event creation procedure is expired or not\r
28         eventRicControlReqExpiredMu  *sync.Mutex  //mutex for eventCreateExpiredMap\r
29         ricRequestInstanceID         int\r
30 }\r
31 \r
32 type RicHoControlMsg struct {\r
33         RicControlGrpcReqPtr *rc.RicControlGrpcReq\r
34 }\r
35 \r