1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
8 api "git.fd.io/govpp.git/api"
9 vpe "git.fd.io/govpp.git/binapi/vpe"
13 // RPCService defines RPC service classify.
14 type RPCService interface {
15 ClassifyAddDelSession(ctx context.Context, in *ClassifyAddDelSession) (*ClassifyAddDelSessionReply, error)
16 ClassifyAddDelTable(ctx context.Context, in *ClassifyAddDelTable) (*ClassifyAddDelTableReply, error)
17 ClassifySessionDump(ctx context.Context, in *ClassifySessionDump) (RPCService_ClassifySessionDumpClient, error)
18 ClassifySetInterfaceIPTable(ctx context.Context, in *ClassifySetInterfaceIPTable) (*ClassifySetInterfaceIPTableReply, error)
19 ClassifySetInterfaceL2Tables(ctx context.Context, in *ClassifySetInterfaceL2Tables) (*ClassifySetInterfaceL2TablesReply, error)
20 ClassifyTableByInterface(ctx context.Context, in *ClassifyTableByInterface) (*ClassifyTableByInterfaceReply, error)
21 ClassifyTableIds(ctx context.Context, in *ClassifyTableIds) (*ClassifyTableIdsReply, error)
22 ClassifyTableInfo(ctx context.Context, in *ClassifyTableInfo) (*ClassifyTableInfoReply, error)
23 FlowClassifyDump(ctx context.Context, in *FlowClassifyDump) (RPCService_FlowClassifyDumpClient, error)
24 FlowClassifySetInterface(ctx context.Context, in *FlowClassifySetInterface) (*FlowClassifySetInterfaceReply, error)
25 InputACLSetInterface(ctx context.Context, in *InputACLSetInterface) (*InputACLSetInterfaceReply, error)
26 OutputACLSetInterface(ctx context.Context, in *OutputACLSetInterface) (*OutputACLSetInterfaceReply, error)
27 PolicerClassifyDump(ctx context.Context, in *PolicerClassifyDump) (RPCService_PolicerClassifyDumpClient, error)
28 PolicerClassifySetInterface(ctx context.Context, in *PolicerClassifySetInterface) (*PolicerClassifySetInterfaceReply, error)
31 type serviceClient struct {
35 func NewServiceClient(conn api.Connection) RPCService {
36 return &serviceClient{conn}
39 func (c *serviceClient) ClassifyAddDelSession(ctx context.Context, in *ClassifyAddDelSession) (*ClassifyAddDelSessionReply, error) {
40 out := new(ClassifyAddDelSessionReply)
41 err := c.conn.Invoke(ctx, in, out)
48 func (c *serviceClient) ClassifyAddDelTable(ctx context.Context, in *ClassifyAddDelTable) (*ClassifyAddDelTableReply, error) {
49 out := new(ClassifyAddDelTableReply)
50 err := c.conn.Invoke(ctx, in, out)
57 func (c *serviceClient) ClassifySessionDump(ctx context.Context, in *ClassifySessionDump) (RPCService_ClassifySessionDumpClient, error) {
58 stream, err := c.conn.NewStream(ctx)
62 x := &serviceClient_ClassifySessionDumpClient{stream}
63 if err := x.Stream.SendMsg(in); err != nil {
66 if err = x.Stream.SendMsg(&vpe.ControlPing{}); err != nil {
72 type RPCService_ClassifySessionDumpClient interface {
73 Recv() (*ClassifySessionDetails, error)
77 type serviceClient_ClassifySessionDumpClient struct {
81 func (c *serviceClient_ClassifySessionDumpClient) Recv() (*ClassifySessionDetails, error) {
82 msg, err := c.Stream.RecvMsg()
86 switch m := msg.(type) {
87 case *ClassifySessionDetails:
89 case *vpe.ControlPingReply:
92 return nil, fmt.Errorf("unexpected message: %T %v", m, m)
96 func (c *serviceClient) ClassifySetInterfaceIPTable(ctx context.Context, in *ClassifySetInterfaceIPTable) (*ClassifySetInterfaceIPTableReply, error) {
97 out := new(ClassifySetInterfaceIPTableReply)
98 err := c.conn.Invoke(ctx, in, out)
105 func (c *serviceClient) ClassifySetInterfaceL2Tables(ctx context.Context, in *ClassifySetInterfaceL2Tables) (*ClassifySetInterfaceL2TablesReply, error) {
106 out := new(ClassifySetInterfaceL2TablesReply)
107 err := c.conn.Invoke(ctx, in, out)
114 func (c *serviceClient) ClassifyTableByInterface(ctx context.Context, in *ClassifyTableByInterface) (*ClassifyTableByInterfaceReply, error) {
115 out := new(ClassifyTableByInterfaceReply)
116 err := c.conn.Invoke(ctx, in, out)
123 func (c *serviceClient) ClassifyTableIds(ctx context.Context, in *ClassifyTableIds) (*ClassifyTableIdsReply, error) {
124 out := new(ClassifyTableIdsReply)
125 err := c.conn.Invoke(ctx, in, out)
132 func (c *serviceClient) ClassifyTableInfo(ctx context.Context, in *ClassifyTableInfo) (*ClassifyTableInfoReply, error) {
133 out := new(ClassifyTableInfoReply)
134 err := c.conn.Invoke(ctx, in, out)
141 func (c *serviceClient) FlowClassifyDump(ctx context.Context, in *FlowClassifyDump) (RPCService_FlowClassifyDumpClient, error) {
142 stream, err := c.conn.NewStream(ctx)
146 x := &serviceClient_FlowClassifyDumpClient{stream}
147 if err := x.Stream.SendMsg(in); err != nil {
150 if err = x.Stream.SendMsg(&vpe.ControlPing{}); err != nil {
156 type RPCService_FlowClassifyDumpClient interface {
157 Recv() (*FlowClassifyDetails, error)
161 type serviceClient_FlowClassifyDumpClient struct {
165 func (c *serviceClient_FlowClassifyDumpClient) Recv() (*FlowClassifyDetails, error) {
166 msg, err := c.Stream.RecvMsg()
170 switch m := msg.(type) {
171 case *FlowClassifyDetails:
173 case *vpe.ControlPingReply:
176 return nil, fmt.Errorf("unexpected message: %T %v", m, m)
180 func (c *serviceClient) FlowClassifySetInterface(ctx context.Context, in *FlowClassifySetInterface) (*FlowClassifySetInterfaceReply, error) {
181 out := new(FlowClassifySetInterfaceReply)
182 err := c.conn.Invoke(ctx, in, out)
189 func (c *serviceClient) InputACLSetInterface(ctx context.Context, in *InputACLSetInterface) (*InputACLSetInterfaceReply, error) {
190 out := new(InputACLSetInterfaceReply)
191 err := c.conn.Invoke(ctx, in, out)
198 func (c *serviceClient) OutputACLSetInterface(ctx context.Context, in *OutputACLSetInterface) (*OutputACLSetInterfaceReply, error) {
199 out := new(OutputACLSetInterfaceReply)
200 err := c.conn.Invoke(ctx, in, out)
207 func (c *serviceClient) PolicerClassifyDump(ctx context.Context, in *PolicerClassifyDump) (RPCService_PolicerClassifyDumpClient, error) {
208 stream, err := c.conn.NewStream(ctx)
212 x := &serviceClient_PolicerClassifyDumpClient{stream}
213 if err := x.Stream.SendMsg(in); err != nil {
216 if err = x.Stream.SendMsg(&vpe.ControlPing{}); err != nil {
222 type RPCService_PolicerClassifyDumpClient interface {
223 Recv() (*PolicerClassifyDetails, error)
227 type serviceClient_PolicerClassifyDumpClient struct {
231 func (c *serviceClient_PolicerClassifyDumpClient) Recv() (*PolicerClassifyDetails, error) {
232 msg, err := c.Stream.RecvMsg()
236 switch m := msg.(type) {
237 case *PolicerClassifyDetails:
239 case *vpe.ControlPingReply:
242 return nil, fmt.Errorf("unexpected message: %T %v", m, m)
246 func (c *serviceClient) PolicerClassifySetInterface(ctx context.Context, in *PolicerClassifySetInterface) (*PolicerClassifySetInterfaceReply, error) {
247 out := new(PolicerClassifySetInterfaceReply)
248 err := c.conn.Invoke(ctx, in, out)