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 ClassifySessionDump(ctx context.Context, in *ClassifySessionDump) (RPCService_ClassifySessionDumpClient, error)
19 ClassifySetInterfaceIPTable(ctx context.Context, in *ClassifySetInterfaceIPTable) (*ClassifySetInterfaceIPTableReply, error)
20 ClassifySetInterfaceL2Tables(ctx context.Context, in *ClassifySetInterfaceL2Tables) (*ClassifySetInterfaceL2TablesReply, error)
21 ClassifyTableByInterface(ctx context.Context, in *ClassifyTableByInterface) (*ClassifyTableByInterfaceReply, error)
22 ClassifyTableIds(ctx context.Context, in *ClassifyTableIds) (*ClassifyTableIdsReply, error)
23 ClassifyTableInfo(ctx context.Context, in *ClassifyTableInfo) (*ClassifyTableInfoReply, error)
24 FlowClassifyDump(ctx context.Context, in *FlowClassifyDump) (RPCService_FlowClassifyDumpClient, error)
25 FlowClassifySetInterface(ctx context.Context, in *FlowClassifySetInterface) (*FlowClassifySetInterfaceReply, error)
26 InputACLSetInterface(ctx context.Context, in *InputACLSetInterface) (*InputACLSetInterfaceReply, error)
27 OutputACLSetInterface(ctx context.Context, in *OutputACLSetInterface) (*OutputACLSetInterfaceReply, error)
28 PolicerClassifyDump(ctx context.Context, in *PolicerClassifyDump) (RPCService_PolicerClassifyDumpClient, error)
29 PolicerClassifySetInterface(ctx context.Context, in *PolicerClassifySetInterface) (*PolicerClassifySetInterfaceReply, error)
32 type serviceClient struct {
36 func NewServiceClient(conn api.Connection) RPCService {
37 return &serviceClient{conn}
40 func (c *serviceClient) ClassifyAddDelSession(ctx context.Context, in *ClassifyAddDelSession) (*ClassifyAddDelSessionReply, error) {
41 out := new(ClassifyAddDelSessionReply)
42 err := c.conn.Invoke(ctx, in, out)
46 return out, api.RetvalToVPPApiError(out.Retval)
49 func (c *serviceClient) ClassifyAddDelTable(ctx context.Context, in *ClassifyAddDelTable) (*ClassifyAddDelTableReply, error) {
50 out := new(ClassifyAddDelTableReply)
51 err := c.conn.Invoke(ctx, in, out)
55 return out, api.RetvalToVPPApiError(out.Retval)
58 func (c *serviceClient) ClassifySessionDump(ctx context.Context, in *ClassifySessionDump) (RPCService_ClassifySessionDumpClient, error) {
59 stream, err := c.conn.NewStream(ctx)
63 x := &serviceClient_ClassifySessionDumpClient{stream}
64 if err := x.Stream.SendMsg(in); err != nil {
67 if err = x.Stream.SendMsg(&vpe.ControlPing{}); err != nil {
73 type RPCService_ClassifySessionDumpClient interface {
74 Recv() (*ClassifySessionDetails, error)
78 type serviceClient_ClassifySessionDumpClient struct {
82 func (c *serviceClient_ClassifySessionDumpClient) Recv() (*ClassifySessionDetails, error) {
83 msg, err := c.Stream.RecvMsg()
87 switch m := msg.(type) {
88 case *ClassifySessionDetails:
90 case *vpe.ControlPingReply:
93 return nil, fmt.Errorf("unexpected message: %T %v", m, m)
97 func (c *serviceClient) ClassifySetInterfaceIPTable(ctx context.Context, in *ClassifySetInterfaceIPTable) (*ClassifySetInterfaceIPTableReply, error) {
98 out := new(ClassifySetInterfaceIPTableReply)
99 err := c.conn.Invoke(ctx, in, out)
103 return out, api.RetvalToVPPApiError(out.Retval)
106 func (c *serviceClient) ClassifySetInterfaceL2Tables(ctx context.Context, in *ClassifySetInterfaceL2Tables) (*ClassifySetInterfaceL2TablesReply, error) {
107 out := new(ClassifySetInterfaceL2TablesReply)
108 err := c.conn.Invoke(ctx, in, out)
112 return out, api.RetvalToVPPApiError(out.Retval)
115 func (c *serviceClient) ClassifyTableByInterface(ctx context.Context, in *ClassifyTableByInterface) (*ClassifyTableByInterfaceReply, error) {
116 out := new(ClassifyTableByInterfaceReply)
117 err := c.conn.Invoke(ctx, in, out)
121 return out, api.RetvalToVPPApiError(out.Retval)
124 func (c *serviceClient) ClassifyTableIds(ctx context.Context, in *ClassifyTableIds) (*ClassifyTableIdsReply, error) {
125 out := new(ClassifyTableIdsReply)
126 err := c.conn.Invoke(ctx, in, out)
130 return out, api.RetvalToVPPApiError(out.Retval)
133 func (c *serviceClient) ClassifyTableInfo(ctx context.Context, in *ClassifyTableInfo) (*ClassifyTableInfoReply, error) {
134 out := new(ClassifyTableInfoReply)
135 err := c.conn.Invoke(ctx, in, out)
139 return out, api.RetvalToVPPApiError(out.Retval)
142 func (c *serviceClient) FlowClassifyDump(ctx context.Context, in *FlowClassifyDump) (RPCService_FlowClassifyDumpClient, error) {
143 stream, err := c.conn.NewStream(ctx)
147 x := &serviceClient_FlowClassifyDumpClient{stream}
148 if err := x.Stream.SendMsg(in); err != nil {
151 if err = x.Stream.SendMsg(&vpe.ControlPing{}); err != nil {
157 type RPCService_FlowClassifyDumpClient interface {
158 Recv() (*FlowClassifyDetails, error)
162 type serviceClient_FlowClassifyDumpClient struct {
166 func (c *serviceClient_FlowClassifyDumpClient) Recv() (*FlowClassifyDetails, error) {
167 msg, err := c.Stream.RecvMsg()
171 switch m := msg.(type) {
172 case *FlowClassifyDetails:
174 case *vpe.ControlPingReply:
177 return nil, fmt.Errorf("unexpected message: %T %v", m, m)
181 func (c *serviceClient) FlowClassifySetInterface(ctx context.Context, in *FlowClassifySetInterface) (*FlowClassifySetInterfaceReply, error) {
182 out := new(FlowClassifySetInterfaceReply)
183 err := c.conn.Invoke(ctx, in, out)
187 return out, api.RetvalToVPPApiError(out.Retval)
190 func (c *serviceClient) InputACLSetInterface(ctx context.Context, in *InputACLSetInterface) (*InputACLSetInterfaceReply, error) {
191 out := new(InputACLSetInterfaceReply)
192 err := c.conn.Invoke(ctx, in, out)
196 return out, api.RetvalToVPPApiError(out.Retval)
199 func (c *serviceClient) OutputACLSetInterface(ctx context.Context, in *OutputACLSetInterface) (*OutputACLSetInterfaceReply, error) {
200 out := new(OutputACLSetInterfaceReply)
201 err := c.conn.Invoke(ctx, in, out)
205 return out, api.RetvalToVPPApiError(out.Retval)
208 func (c *serviceClient) PolicerClassifyDump(ctx context.Context, in *PolicerClassifyDump) (RPCService_PolicerClassifyDumpClient, error) {
209 stream, err := c.conn.NewStream(ctx)
213 x := &serviceClient_PolicerClassifyDumpClient{stream}
214 if err := x.Stream.SendMsg(in); err != nil {
217 if err = x.Stream.SendMsg(&vpe.ControlPing{}); err != nil {
223 type RPCService_PolicerClassifyDumpClient interface {
224 Recv() (*PolicerClassifyDetails, error)
228 type serviceClient_PolicerClassifyDumpClient struct {
232 func (c *serviceClient_PolicerClassifyDumpClient) Recv() (*PolicerClassifyDetails, error) {
233 msg, err := c.Stream.RecvMsg()
237 switch m := msg.(type) {
238 case *PolicerClassifyDetails:
240 case *vpe.ControlPingReply:
243 return nil, fmt.Errorf("unexpected message: %T %v", m, m)
247 func (c *serviceClient) PolicerClassifySetInterface(ctx context.Context, in *PolicerClassifySetInterface) (*PolicerClassifySetInterfaceReply, error) {
248 out := new(PolicerClassifySetInterfaceReply)
249 err := c.conn.Invoke(ctx, in, out)
253 return out, api.RetvalToVPPApiError(out.Retval)