// 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 rmrmsghandlers
import (
"e2mgr/logger"
"e2mgr/models"
- "e2mgr/sessions"
+ "time"
)
type NotificationHandler interface {
- Handle(*logger.Logger, sessions.E2Sessions, *models.NotificationRequest, chan<- *models.NotificationResponse)
+ Handle(*models.NotificationRequest)
+}
+
+//TODO: remove that
+func printHandlingSetupResponseElapsedTimeInMs(logger *logger.Logger, msg string, startTime time.Time) {
+ logger.Infof("%s: %f ms", msg, float64(time.Since(startTime))/float64(time.Millisecond))
}