X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=RSM%2Fenums%2Fregistration_request.go;h=44603633e5ad16e976a3f27530b005c1320c055b;hb=HEAD;hp=1afb01049baad2d6ae946aaf35f418822a4c7f00;hpb=7b80668df78103cebafdfb7caa0070dc92ed3779;p=ric-plt%2Fresource-status-manager.git diff --git a/RSM/enums/registration_request.go b/RSM/enums/registration_request.go index 1afb010..4460363 100644 --- a/RSM/enums/registration_request.go +++ b/RSM/enums/registration_request.go @@ -1,3 +1,23 @@ +// +// Copyright 2019 AT&T Intellectual Property +// Copyright 2019 Nokia +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 enums type Registration_Request int @@ -5,6 +25,8 @@ type Registration_Request int const ( Registration_Request_start Registration_Request = iota Registration_Request_stop - Registration_Request_partial_stop - Registration_Request_add ) + +func (rs Registration_Request) String() string { + return [...]string{"start", "stop"}[rs] +} \ No newline at end of file