0.7.1 Version of submgr
[ric-plt/submgr.git] / pkg / control / types.go
1 /*
2 ==================================================================================
3   Copyright (c) 2019 AT&T Intellectual Property.
4   Copyright (c) 2019 Nokia
5
6    Licensed under the Apache License, Version 2.0 (the "License");
7    you may not use this file except in compliance with the License.
8    You may obtain a copy of the License at
9
10        http://www.apache.org/licenses/LICENSE-2.0
11
12    Unless required by applicable law or agreed to in writing, software
13    distributed under the License is distributed on an "AS IS" BASIS,
14    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15    See the License for the specific language governing permissions and
16    limitations under the License.
17 ==================================================================================
18 */
19
20 package control
21
22 type RmrDatagram struct {
23         MessageType    int
24         SubscriptionId uint16
25         Payload        []byte
26 }
27
28 type subRouteInfo struct {
29         Command  Action
30         Address  string
31         Port     uint16
32         SubID    uint16
33 }
34
35 type Action int
36
37 type Transaction_key struct {
38         SubID      uint16
39         trans_type Action
40 }
41
42 type Transaction struct {
43 //      Xapp_address          string
44         Xapp_instance_address string
45         Xapp_port             uint16
46         Ric_sub_req           []byte
47 }