X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=E2Manager%2Fmodels%2Fnotification_request.go;h=a5a3a37debf49505089879989741fa0547cd01a6;hb=refs%2Fchanges%2F58%2F1358%2F1;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..a5a3a37 100644 --- a/E2Manager/models/notification_request.go +++ b/E2Manager/models/notification_request.go @@ -21,8 +21,18 @@ import "time" type NotificationRequest struct { RanName string - Len int + Len int Payload []byte - StartTime time.Time - TransactionId string + StartTime time.Time + TransactionId []byte +} + +func NewNotificationRequest(ranName string, payload []byte, startTime time.Time, transactionId []byte) *NotificationRequest { + return &NotificationRequest{ + ranName, + len(payload), + payload, + startTime, + transactionId, + } }