1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
10 api "git.fd.io/govpp.git/api"
11 vpe "git.fd.io/govpp.git/binapi/vpe"
14 // RPCService defines RPC service classify.
15 type RPCService interface {
16 ClassifyAddDelSession(ctx context.Context, in *ClassifyAddDelSession) (*ClassifyAddDelSessionReply, error)
17 ClassifyAddDelTable(ctx context.Context, in *ClassifyAddDelTable) (*ClassifyAddDelTableReply, error)
18 ClassifyPcapGetTables(ctx context.Context, in *ClassifyPcapGetTables) (*ClassifyPcapGetTablesReply, error)
19 ClassifyPcapLookupTable(ctx context.Context, in *ClassifyPcapLookupTable) (*ClassifyPcapLookupTableReply, error)
20 ClassifyPcapSetTable(ctx context.Context, in *ClassifyPcapSetTable) (*ClassifyPcapSetTableReply, error)
21 ClassifySessionDump(ctx context.Context, in *ClassifySessionDump) (RPCService_ClassifySessionDumpClient, error)
22 ClassifySetInterfaceIPTable(ctx context.Context, in *ClassifySetInterfaceIPTable) (*ClassifySetInterfaceIPTableReply, error)
23 ClassifySetInterfaceL2Tables(ctx context.Context, in *ClassifySetInterfaceL2Tables) (*ClassifySetInterfaceL2TablesReply, error)
24 ClassifyTableByInterface(ctx context.Context, in *ClassifyTableByInterface) (*ClassifyTableByInterfaceReply, error)
25 ClassifyTableIds(ctx context.Context, in *ClassifyTableIds) (*ClassifyTableIdsReply, error)
26 ClassifyTableInfo(ctx context.Context, in *ClassifyTableInfo) (*ClassifyTableInfoReply, error)
27 ClassifyTraceGetTables(ctx context.Context, in *ClassifyTraceGetTables) (*ClassifyTraceGetTablesReply, error)
28 ClassifyTraceLookupTable(ctx context.Context, in *ClassifyTraceLookupTable) (*ClassifyTraceLookupTableReply, error)
29 ClassifyTraceSetTable(ctx context.Context, in *ClassifyTraceSetTable) (*ClassifyTraceSetTableReply, error)
30 FlowClassifyDump(ctx context.Context, in *FlowClassifyDump) (RPCService_FlowClassifyDumpClient, error)
31 FlowClassifySetInterface(ctx context.Context, in *FlowClassifySetInterface) (*FlowClassifySetInterfaceReply, error)
32 InputACLSetInterface(ctx context.Context, in *InputACLSetInterface) (*InputACLSetInterfaceReply, error)
33 OutputACLSetInterface(ctx context.Context, in *OutputACLSetInterface) (*OutputACLSetInterfaceReply, error)
34 PolicerClassifyDump(ctx context.Context, in *PolicerClassifyDump) (RPCService_PolicerClassifyDumpClient, error)
35 PolicerClassifySetInterface(ctx context.Context, in *PolicerClassifySetInterface) (*PolicerClassifySetInterfaceReply, error)
38 type serviceClient struct {
42 func NewServiceClient(conn api.Connection) RPCService {
43 return &serviceClient{conn}
46 func (c *serviceClient) ClassifyAddDelSession(ctx context.Context, in *ClassifyAddDelSession) (*ClassifyAddDelSessionReply, error) {
47 out := new(ClassifyAddDelSessionReply)
48 err := c.conn.Invoke(ctx, in, out)
52 return out, api.RetvalToVPPApiError(out.Retval)
55 func (c *serviceClient) ClassifyAddDelTable(ctx context.Context, in *ClassifyAddDelTable) (*ClassifyAddDelTableReply, error) {
56 out := new(ClassifyAddDelTableReply)
57 err := c.conn.Invoke(ctx, in, out)
61 return out, api.RetvalToVPPApiError(out.Retval)
64 func (c *serviceClient) ClassifyPcapGetTables(ctx context.Context, in *ClassifyPcapGetTables) (*ClassifyPcapGetTablesReply, error) {
65 out := new(ClassifyPcapGetTablesReply)
66 err := c.conn.Invoke(ctx, in, out)
70 return out, api.RetvalToVPPApiError(out.Retval)
73 func (c *serviceClient) ClassifyPcapLookupTable(ctx context.Context, in *ClassifyPcapLookupTable) (*ClassifyPcapLookupTableReply, error) {
74 out := new(ClassifyPcapLookupTableReply)
75 err := c.conn.Invoke(ctx, in, out)
79 return out, api.RetvalToVPPApiError(out.Retval)
82 func (c *serviceClient) ClassifyPcapSetTable(ctx context.Context, in *ClassifyPcapSetTable) (*ClassifyPcapSetTableReply, error) {
83 out := new(ClassifyPcapSetTableReply)
84 err := c.conn.Invoke(ctx, in, out)
88 return out, api.RetvalToVPPApiError(out.Retval)
91 func (c *serviceClient) ClassifySessionDump(ctx context.Context, in *ClassifySessionDump) (RPCService_ClassifySessionDumpClient, error) {
92 stream, err := c.conn.NewStream(ctx)
96 x := &serviceClient_ClassifySessionDumpClient{stream}
97 if err := x.Stream.SendMsg(in); err != nil {
100 if err = x.Stream.SendMsg(&vpe.ControlPing{}); err != nil {
106 type RPCService_ClassifySessionDumpClient interface {
107 Recv() (*ClassifySessionDetails, error)
111 type serviceClient_ClassifySessionDumpClient struct {
115 func (c *serviceClient_ClassifySessionDumpClient) Recv() (*ClassifySessionDetails, error) {
116 msg, err := c.Stream.RecvMsg()
120 switch m := msg.(type) {
121 case *ClassifySessionDetails:
123 case *vpe.ControlPingReply:
126 return nil, fmt.Errorf("unexpected message: %T %v", m, m)
130 func (c *serviceClient) ClassifySetInterfaceIPTable(ctx context.Context, in *ClassifySetInterfaceIPTable) (*ClassifySetInterfaceIPTableReply, error) {
131 out := new(ClassifySetInterfaceIPTableReply)
132 err := c.conn.Invoke(ctx, in, out)
136 return out, api.RetvalToVPPApiError(out.Retval)
139 func (c *serviceClient) ClassifySetInterfaceL2Tables(ctx context.Context, in *ClassifySetInterfaceL2Tables) (*ClassifySetInterfaceL2TablesReply, error) {
140 out := new(ClassifySetInterfaceL2TablesReply)
141 err := c.conn.Invoke(ctx, in, out)
145 return out, api.RetvalToVPPApiError(out.Retval)
148 func (c *serviceClient) ClassifyTableByInterface(ctx context.Context, in *ClassifyTableByInterface) (*ClassifyTableByInterfaceReply, error) {
149 out := new(ClassifyTableByInterfaceReply)
150 err := c.conn.Invoke(ctx, in, out)
154 return out, api.RetvalToVPPApiError(out.Retval)
157 func (c *serviceClient) ClassifyTableIds(ctx context.Context, in *ClassifyTableIds) (*ClassifyTableIdsReply, error) {
158 out := new(ClassifyTableIdsReply)
159 err := c.conn.Invoke(ctx, in, out)
163 return out, api.RetvalToVPPApiError(out.Retval)
166 func (c *serviceClient) ClassifyTableInfo(ctx context.Context, in *ClassifyTableInfo) (*ClassifyTableInfoReply, error) {
167 out := new(ClassifyTableInfoReply)
168 err := c.conn.Invoke(ctx, in, out)
172 return out, api.RetvalToVPPApiError(out.Retval)
175 func (c *serviceClient) ClassifyTraceGetTables(ctx context.Context, in *ClassifyTraceGetTables) (*ClassifyTraceGetTablesReply, error) {
176 out := new(ClassifyTraceGetTablesReply)
177 err := c.conn.Invoke(ctx, in, out)
181 return out, api.RetvalToVPPApiError(out.Retval)
184 func (c *serviceClient) ClassifyTraceLookupTable(ctx context.Context, in *ClassifyTraceLookupTable) (*ClassifyTraceLookupTableReply, error) {
185 out := new(ClassifyTraceLookupTableReply)
186 err := c.conn.Invoke(ctx, in, out)
190 return out, api.RetvalToVPPApiError(out.Retval)
193 func (c *serviceClient) ClassifyTraceSetTable(ctx context.Context, in *ClassifyTraceSetTable) (*ClassifyTraceSetTableReply, error) {
194 out := new(ClassifyTraceSetTableReply)
195 err := c.conn.Invoke(ctx, in, out)
199 return out, api.RetvalToVPPApiError(out.Retval)
202 func (c *serviceClient) FlowClassifyDump(ctx context.Context, in *FlowClassifyDump) (RPCService_FlowClassifyDumpClient, error) {
203 stream, err := c.conn.NewStream(ctx)
207 x := &serviceClient_FlowClassifyDumpClient{stream}
208 if err := x.Stream.SendMsg(in); err != nil {
211 if err = x.Stream.SendMsg(&vpe.ControlPing{}); err != nil {
217 type RPCService_FlowClassifyDumpClient interface {
218 Recv() (*FlowClassifyDetails, error)
222 type serviceClient_FlowClassifyDumpClient struct {
226 func (c *serviceClient_FlowClassifyDumpClient) Recv() (*FlowClassifyDetails, error) {
227 msg, err := c.Stream.RecvMsg()
231 switch m := msg.(type) {
232 case *FlowClassifyDetails:
234 case *vpe.ControlPingReply:
237 return nil, fmt.Errorf("unexpected message: %T %v", m, m)
241 func (c *serviceClient) FlowClassifySetInterface(ctx context.Context, in *FlowClassifySetInterface) (*FlowClassifySetInterfaceReply, error) {
242 out := new(FlowClassifySetInterfaceReply)
243 err := c.conn.Invoke(ctx, in, out)
247 return out, api.RetvalToVPPApiError(out.Retval)
250 func (c *serviceClient) InputACLSetInterface(ctx context.Context, in *InputACLSetInterface) (*InputACLSetInterfaceReply, error) {
251 out := new(InputACLSetInterfaceReply)
252 err := c.conn.Invoke(ctx, in, out)
256 return out, api.RetvalToVPPApiError(out.Retval)
259 func (c *serviceClient) OutputACLSetInterface(ctx context.Context, in *OutputACLSetInterface) (*OutputACLSetInterfaceReply, error) {
260 out := new(OutputACLSetInterfaceReply)
261 err := c.conn.Invoke(ctx, in, out)
265 return out, api.RetvalToVPPApiError(out.Retval)
268 func (c *serviceClient) PolicerClassifyDump(ctx context.Context, in *PolicerClassifyDump) (RPCService_PolicerClassifyDumpClient, error) {
269 stream, err := c.conn.NewStream(ctx)
273 x := &serviceClient_PolicerClassifyDumpClient{stream}
274 if err := x.Stream.SendMsg(in); err != nil {
277 if err = x.Stream.SendMsg(&vpe.ControlPing{}); err != nil {
283 type RPCService_PolicerClassifyDumpClient interface {
284 Recv() (*PolicerClassifyDetails, error)
288 type serviceClient_PolicerClassifyDumpClient struct {
292 func (c *serviceClient_PolicerClassifyDumpClient) Recv() (*PolicerClassifyDetails, error) {
293 msg, err := c.Stream.RecvMsg()
297 switch m := msg.(type) {
298 case *PolicerClassifyDetails:
300 case *vpe.ControlPingReply:
303 return nil, fmt.Errorf("unexpected message: %T %v", m, m)
307 func (c *serviceClient) PolicerClassifySetInterface(ctx context.Context, in *PolicerClassifySetInterface) (*PolicerClassifySetInterfaceReply, error) {
308 out := new(PolicerClassifySetInterfaceReply)
309 err := c.conn.Invoke(ctx, in, out)
313 return out, api.RetvalToVPPApiError(out.Retval)