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 ip_neighbor.
14 type RPCService interface {
15 IPNeighborAddDel(ctx context.Context, in *IPNeighborAddDel) (*IPNeighborAddDelReply, error)
16 IPNeighborConfig(ctx context.Context, in *IPNeighborConfig) (*IPNeighborConfigReply, error)
17 IPNeighborDump(ctx context.Context, in *IPNeighborDump) (RPCService_IPNeighborDumpClient, error)
18 IPNeighborFlush(ctx context.Context, in *IPNeighborFlush) (*IPNeighborFlushReply, error)
19 IPNeighborReplaceBegin(ctx context.Context, in *IPNeighborReplaceBegin) (*IPNeighborReplaceBeginReply, error)
20 IPNeighborReplaceEnd(ctx context.Context, in *IPNeighborReplaceEnd) (*IPNeighborReplaceEndReply, error)
21 WantIPNeighborEvents(ctx context.Context, in *WantIPNeighborEvents) (*WantIPNeighborEventsReply, error)
24 type serviceClient struct {
28 func NewServiceClient(conn api.Connection) RPCService {
29 return &serviceClient{conn}
32 func (c *serviceClient) IPNeighborAddDel(ctx context.Context, in *IPNeighborAddDel) (*IPNeighborAddDelReply, error) {
33 out := new(IPNeighborAddDelReply)
34 err := c.conn.Invoke(ctx, in, out)
41 func (c *serviceClient) IPNeighborConfig(ctx context.Context, in *IPNeighborConfig) (*IPNeighborConfigReply, error) {
42 out := new(IPNeighborConfigReply)
43 err := c.conn.Invoke(ctx, in, out)
50 func (c *serviceClient) IPNeighborDump(ctx context.Context, in *IPNeighborDump) (RPCService_IPNeighborDumpClient, error) {
51 stream, err := c.conn.NewStream(ctx)
55 x := &serviceClient_IPNeighborDumpClient{stream}
56 if err := x.Stream.SendMsg(in); err != nil {
59 if err = x.Stream.SendMsg(&vpe.ControlPing{}); err != nil {
65 type RPCService_IPNeighborDumpClient interface {
66 Recv() (*IPNeighborDetails, error)
70 type serviceClient_IPNeighborDumpClient struct {
74 func (c *serviceClient_IPNeighborDumpClient) Recv() (*IPNeighborDetails, error) {
75 msg, err := c.Stream.RecvMsg()
79 switch m := msg.(type) {
80 case *IPNeighborDetails:
82 case *vpe.ControlPingReply:
85 return nil, fmt.Errorf("unexpected message: %T %v", m, m)
89 func (c *serviceClient) IPNeighborFlush(ctx context.Context, in *IPNeighborFlush) (*IPNeighborFlushReply, error) {
90 out := new(IPNeighborFlushReply)
91 err := c.conn.Invoke(ctx, in, out)
98 func (c *serviceClient) IPNeighborReplaceBegin(ctx context.Context, in *IPNeighborReplaceBegin) (*IPNeighborReplaceBeginReply, error) {
99 out := new(IPNeighborReplaceBeginReply)
100 err := c.conn.Invoke(ctx, in, out)
107 func (c *serviceClient) IPNeighborReplaceEnd(ctx context.Context, in *IPNeighborReplaceEnd) (*IPNeighborReplaceEndReply, error) {
108 out := new(IPNeighborReplaceEndReply)
109 err := c.conn.Invoke(ctx, in, out)
116 func (c *serviceClient) WantIPNeighborEvents(ctx context.Context, in *WantIPNeighborEvents) (*WantIPNeighborEventsReply, error) {
117 out := new(WantIPNeighborEventsReply)
118 err := c.conn.Invoke(ctx, in, out)