Copy latest code to master
[ric-plt/resource-status-manager.git] / RSM / enums / message_direction.go
index ea6436a..50c0d4f 100644 (file)
 // 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
 
@@ -30,12 +33,6 @@ var messageDirectionEnumName = map[int32]string{
        2: "RIC_TO_RAN",
 }
 
-const (
-       UNKNOWN_MESSAGE_DIRECTION MessageDirection = 0
-       RAN_TO_RIC                MessageDirection = 1
-       RIC_TO_RAN                MessageDirection = 2
-)
-
 func (md MessageDirection) String() string {
        s, ok := messageDirectionEnumName[int32(md)]
        if ok {
@@ -48,9 +45,9 @@ func (md MessageDirection) MarshalJSON() ([]byte, error) {
        _, ok := messageDirectionEnumName[int32(md)]
 
        if !ok {
-               return nil,&json.UnsupportedValueError{}
+               return nil, &json.UnsupportedValueError{}
        }
 
-       v:= int32(md)
+       v := int32(md)
        return json.Marshal(v)
 }