push code back with legal issues fix
[ric-plt/e2mgr.git] / E2Manager / handlers / ric_enb_load_information_notification_handler.go
1 package handlers
2
3 import (
4         "e2mgr/logger"
5         "e2mgr/models"
6         "e2mgr/sessions"
7 )
8
9 type RicEnbLoadInformationNotificationHandler struct{}
10
11
12 func (src RicEnbLoadInformationNotificationHandler) Handle(logger *logger.Logger, e2Sessions sessions.E2Sessions,
13         request *models.NotificationRequest, messageChannel chan<- *models.NotificationResponse) {
14
15         notification, err := unpackX2apPduAndRefine(logger, MaxAsn1CodecAllocationBufferSize /*allocation buffer*/, request.Len, request.Payload, MaxAsn1CodecMessageBufferSize /*message buffer*/)
16
17         if err != nil {
18                 logger.Errorf("#ric_enb_load_information_notification_handler.Handle - unpack failed. Error: %v", err)
19         }
20
21         logger.Infof("#ric_enb_load_information_notification_handler.handle - Enb load information notification message received")
22         logger.Debugf("#ric_enb_load_information_notification_handler.handle - Enb load information notification message payload: %s", notification.pduPrint)
23 }