Fix in the document
[ric-plt/submgr.git] / e2ap / pkg / e2ap / e2ap_packerif.go
1 /*
2 ==================================================================================
3   Copyright (c) 2019 AT&T Intellectual Property.
4   Copyright (c) 2019 Nokia
5
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
9
10        http://www.apache.org/licenses/LICENSE-2.0
11
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 ==================================================================================
18 */
19
20 package e2ap
21
22 //-----------------------------------------------------------------------------
23 //
24 //-----------------------------------------------------------------------------
25 type E2APMsgPackerSubscriptionRequestIf interface {
26         Pack(*E2APSubscriptionRequest) (error, *PackedData)
27         UnPack(msg *PackedData) (error, *E2APSubscriptionRequest)
28         String() string
29 }
30
31 //-----------------------------------------------------------------------------
32 //
33 //-----------------------------------------------------------------------------
34 type E2APMsgPackerSubscriptionResponseIf interface {
35         Pack(*E2APSubscriptionResponse) (error, *PackedData)
36         UnPack(msg *PackedData) (error, *E2APSubscriptionResponse)
37         String() string
38 }
39
40 //-----------------------------------------------------------------------------
41 //
42 //-----------------------------------------------------------------------------
43 type E2APMsgPackerSubscriptionFailureIf interface {
44         Pack(*E2APSubscriptionFailure) (error, *PackedData)
45         UnPack(msg *PackedData) (error, *E2APSubscriptionFailure)
46         String() string
47 }
48
49 //-----------------------------------------------------------------------------
50 //
51 //-----------------------------------------------------------------------------
52 type E2APMsgPackerSubscriptionDeleteRequestIf interface {
53         Pack(*E2APSubscriptionDeleteRequest) (error, *PackedData)
54         UnPack(msg *PackedData) (error, *E2APSubscriptionDeleteRequest)
55         String() string
56 }
57
58 //-----------------------------------------------------------------------------
59 //
60 //-----------------------------------------------------------------------------
61 type E2APMsgPackerSubscriptionDeleteResponseIf interface {
62         Pack(*E2APSubscriptionDeleteResponse) (error, *PackedData)
63         UnPack(msg *PackedData) (error, *E2APSubscriptionDeleteResponse)
64         String() string
65 }
66
67 //-----------------------------------------------------------------------------
68 //
69 //-----------------------------------------------------------------------------
70 type E2APMsgPackerSubscriptionDeleteFailureIf interface {
71         Pack(*E2APSubscriptionDeleteFailure) (error, *PackedData)
72         UnPack(msg *PackedData) (error, *E2APSubscriptionDeleteFailure)
73         String() string
74 }
75
76 //-----------------------------------------------------------------------------
77 //
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)
88 }