2 ==================================================================================
3 Copyright (c) 2019 AT&T Intellectual Property.
4 Copyright (c) 2019 Nokia
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
10 http://www.apache.org/licenses/LICENSE-2.0
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
17 ==================================================================================
23 "gerrit.o-ran-sc.org/r/ric-plt/e2ap/pkg/packer"
26 //-----------------------------------------------------------------------------
28 //-----------------------------------------------------------------------------
29 type E2APMsgPackerSubscriptionRequestIf interface {
30 Pack(*E2APSubscriptionRequest) (error, *packer.PackedData)
31 UnPack(msg *packer.PackedData) (error, *E2APSubscriptionRequest)
35 //-----------------------------------------------------------------------------
37 //-----------------------------------------------------------------------------
38 type E2APMsgPackerSubscriptionResponseIf interface {
39 Pack(*E2APSubscriptionResponse) (error, *packer.PackedData)
40 UnPack(msg *packer.PackedData) (error, *E2APSubscriptionResponse)
44 //-----------------------------------------------------------------------------
46 //-----------------------------------------------------------------------------
47 type E2APMsgPackerSubscriptionFailureIf interface {
48 Pack(*E2APSubscriptionFailure) (error, *packer.PackedData)
49 UnPack(msg *packer.PackedData) (error, *E2APSubscriptionFailure)
53 //-----------------------------------------------------------------------------
55 //-----------------------------------------------------------------------------
56 type E2APMsgPackerSubscriptionDeleteRequestIf interface {
57 Pack(*E2APSubscriptionDeleteRequest) (error, *packer.PackedData)
58 Pack21(*E2APSubscriptionDeleteRequest) (error, *packer.PackedData)
59 Pack22(*E2APSubscriptionDeleteRequest) (error, *packer.PackedData)
60 UnPack(msg *packer.PackedData) (error, *E2APSubscriptionDeleteRequest)
64 //-----------------------------------------------------------------------------
66 //-----------------------------------------------------------------------------
67 type E2APMsgPackerSubscriptionDeleteResponseIf interface {
68 Pack(*E2APSubscriptionDeleteResponse) (error, *packer.PackedData)
69 UnPack(msg *packer.PackedData) (error, *E2APSubscriptionDeleteResponse)
73 //-----------------------------------------------------------------------------
75 //-----------------------------------------------------------------------------
76 type E2APMsgPackerSubscriptionDeleteFailureIf interface {
77 Pack(*E2APSubscriptionDeleteFailure) (error, *packer.PackedData)
78 UnPack(msg *packer.PackedData) (error, *E2APSubscriptionDeleteFailure)
82 //-----------------------------------------------------------------------------
84 //-----------------------------------------------------------------------------
85 type E2APPackerIf interface {
86 NewPackerSubscriptionRequest() E2APMsgPackerSubscriptionRequestIf
87 NewPackerSubscriptionResponse() E2APMsgPackerSubscriptionResponseIf
88 NewPackerSubscriptionFailure() E2APMsgPackerSubscriptionFailureIf
89 NewPackerSubscriptionDeleteRequest() E2APMsgPackerSubscriptionDeleteRequestIf
90 NewPackerSubscriptionDeleteResponse() E2APMsgPackerSubscriptionDeleteResponseIf
91 NewPackerSubscriptionDeleteFailure() E2APMsgPackerSubscriptionDeleteFailureIf
92 //UnPack(*packer.PackedData) (error, interface{})
93 //Pack(interface{}, *packer.PackedData) (error, *packer.PackedData)