2 ==================================================================================
3 Copyright (c) 2019 AT&T Intellectual Property.
4 Copyright (c) 2019 Nokia
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
10 http://www.apache.org/licenses/LICENSE-2.0
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.
18 This source code is part of the near-RT RIC (RAN Intelligent Controller)
19 platform project (RICP).
21 ==================================================================================
24 Mnemonic: rtmgr/types.go
25 Abstract: Contains RTMGR (Routing Manager) specific types
35 type RouteTable []RouteTableEntry
36 type EndpointList []Endpoint
38 type Endpoints map[string]*Endpoint
40 type SubscriptionList []Subscription
42 //TODO: uuid is not a real UUID but a string of "ip:port"
43 // this should be changed to real UUID later on which should come from xApp Manager // petszila
44 type Endpoint struct {
58 type RouteTableEntry struct {
61 RxGroups []EndpointList
67 Name string `json:"name"`
68 Status string `json:"status"`
69 Version string `json:"version"`
70 Instances []XAppInstance `json:"instances"`
73 type XAppInstance struct {
74 Name string `json:"name"`
75 Status string `json:"status"`
77 Port uint16 `json:"port"`
78 TxMessages []string `json:"txMessages"`
79 RxMessages []string `json:"rxMessages"`
80 Policies []int32 `json:"policies"`
83 type PlatformComponents []struct {
84 Name string `json:"name"`
85 Fqdn string `json:"fqdn"`
86 Port uint16 `json:"port"`
89 type E2TInstance struct {
90 Name string `json:"name"`
91 Fqdn string `json:"fqdn"`
92 Ranlist []string `json:"ranlist"`
95 type E2tIdentity struct {
96 E2taddress string `json:"e2tAddress"`
97 Rannames []string `json:"ranNames"`
100 type ConfigRtmgr struct {
101 Pcs PlatformComponents `json:"PlatformComponents"`
104 type RicComponents struct {
106 E2Ts map [string]E2TInstance
108 Pcs PlatformComponents
111 type Subscription struct {
117 type PlatformRoutes []struct {
118 MessageType string `json:"messagetype"`
119 SenderEndPoint string `json:"senderendpoint"`
120 SubscriptionId int32 `json:"subscriptionid"`
121 EndPoint string `json:"endpoint"`
122 Meid string `json:"meid"`
125 type RtmgrRoutes struct {
126 Prs PlatformRoutes `json:"PlatformRoutes"`
134 type XappList struct {
135 SubscriptionID uint16