X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=E2Manager%2Fmodels%2Fnotification_request.go;h=73ee06be294862d89b944128c0bf37bf453e69cb;hb=065c26254660c855188163d7296dfe0d1e161a91;hp=4f3cf9650169fbc4ab657db47a0027a9c2e0bda9;hpb=07ef76dd471a0892a893c90e0ab06713aee34be1;p=ric-plt%2Fe2mgr.git diff --git a/E2Manager/models/notification_request.go b/E2Manager/models/notification_request.go index 4f3cf96..73ee06b 100644 --- a/E2Manager/models/notification_request.go +++ b/E2Manager/models/notification_request.go @@ -13,16 +13,38 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -// + +// This source code is part of the near-RT RIC (RAN Intelligent Controller) +// platform project (RICP). + package models -import "time" +import ( + "time" + "unsafe" +) type NotificationRequest struct { RanName string - Len int + Len int Payload []byte - StartTime time.Time - TransactionId string + StartTime time.Time + TransactionId []byte + msgSrc unsafe.Pointer +} + +func NewNotificationRequest(ranName string, payload []byte, startTime time.Time, transactionId []byte, msgSrc unsafe.Pointer) *NotificationRequest { + return &NotificationRequest{ + ranName, + len(payload), + payload, + startTime, + transactionId, + msgSrc, + } +} + +func (r NotificationRequest) GetMsgSrc() unsafe.Pointer{ + return r.msgSrc }