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 ==================================================================================
22 //-----------------------------------------------------------------------------
24 //-----------------------------------------------------------------------------
25 type E2APMsgPackerSubscriptionRequestIf interface {
26 Pack(*E2APSubscriptionRequest) (error, *PackedData)
27 UnPack(msg *PackedData) (error, *E2APSubscriptionRequest)
31 //-----------------------------------------------------------------------------
33 //-----------------------------------------------------------------------------
34 type E2APMsgPackerSubscriptionResponseIf interface {
35 Pack(*E2APSubscriptionResponse) (error, *PackedData)
36 UnPack(msg *PackedData) (error, *E2APSubscriptionResponse)
40 //-----------------------------------------------------------------------------
42 //-----------------------------------------------------------------------------
43 type E2APMsgPackerSubscriptionFailureIf interface {
44 Pack(*E2APSubscriptionFailure) (error, *PackedData)
45 UnPack(msg *PackedData) (error, *E2APSubscriptionFailure)
49 //-----------------------------------------------------------------------------
51 //-----------------------------------------------------------------------------
52 type E2APMsgPackerSubscriptionDeleteRequestIf interface {
53 Pack(*E2APSubscriptionDeleteRequest) (error, *PackedData)
54 UnPack(msg *PackedData) (error, *E2APSubscriptionDeleteRequest)
58 //-----------------------------------------------------------------------------
60 //-----------------------------------------------------------------------------
61 type E2APMsgPackerSubscriptionDeleteResponseIf interface {
62 Pack(*E2APSubscriptionDeleteResponse) (error, *PackedData)
63 UnPack(msg *PackedData) (error, *E2APSubscriptionDeleteResponse)
67 //-----------------------------------------------------------------------------
69 //-----------------------------------------------------------------------------
70 type E2APMsgPackerSubscriptionDeleteFailureIf interface {
71 Pack(*E2APSubscriptionDeleteFailure) (error, *PackedData)
72 UnPack(msg *PackedData) (error, *E2APSubscriptionDeleteFailure)
76 //-----------------------------------------------------------------------------
78 //-----------------------------------------------------------------------------
79 type E2APPackerIf interface {
80 NewPackerSubscriptionRequest() E2APMsgPackerSubscriptionRequestIf
81 NewPackerSubscriptionResponse() E2APMsgPackerSubscriptionResponseIf
82 NewPackerSubscriptionFailure() E2APMsgPackerSubscriptionFailureIf
83 NewPackerSubscriptionDeleteRequest() E2APMsgPackerSubscriptionDeleteRequestIf
84 NewPackerSubscriptionDeleteResponse() E2APMsgPackerSubscriptionDeleteResponseIf
85 NewPackerSubscriptionDeleteFailure() E2APMsgPackerSubscriptionDeleteFailureIf
86 //UnPack(*PackedData) (error, interface{})
87 //Pack(interface{}, *PackedData) (error, *PackedData)