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/internal/testbinapi/binapi2001/vpe"
13 // RPCService defines RPC service lacp.
14 type RPCService interface {
15 SwInterfaceLacpDump(ctx context.Context, in *SwInterfaceLacpDump) (RPCService_SwInterfaceLacpDumpClient, error)
18 type serviceClient struct {
22 func NewServiceClient(conn api.Connection) RPCService {
23 return &serviceClient{conn}
26 func (c *serviceClient) SwInterfaceLacpDump(ctx context.Context, in *SwInterfaceLacpDump) (RPCService_SwInterfaceLacpDumpClient, error) {
27 stream, err := c.conn.NewStream(ctx)
31 x := &serviceClient_SwInterfaceLacpDumpClient{stream}
32 if err := x.Stream.SendMsg(in); err != nil {
35 if err = x.Stream.SendMsg(&vpe.ControlPing{}); err != nil {
41 type RPCService_SwInterfaceLacpDumpClient interface {
42 Recv() (*SwInterfaceLacpDetails, error)
46 type serviceClient_SwInterfaceLacpDumpClient struct {
50 func (c *serviceClient_SwInterfaceLacpDumpClient) Recv() (*SwInterfaceLacpDetails, error) {
51 msg, err := c.Stream.RecvMsg()
55 switch m := msg.(type) {
56 case *SwInterfaceLacpDetails:
58 case *vpe.ControlPingReply:
61 return nil, fmt.Errorf("unexpected message: %T %v", m, m)