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 ip6_nd.
14 type RPCService interface {
15 IP6ndProxyAddDel(ctx context.Context, in *IP6ndProxyAddDel) (*IP6ndProxyAddDelReply, error)
16 IP6ndProxyDump(ctx context.Context, in *IP6ndProxyDump) (RPCService_IP6ndProxyDumpClient, error)
17 IP6ndSendRouterSolicitation(ctx context.Context, in *IP6ndSendRouterSolicitation) (*IP6ndSendRouterSolicitationReply, error)
18 SwInterfaceIP6ndRaConfig(ctx context.Context, in *SwInterfaceIP6ndRaConfig) (*SwInterfaceIP6ndRaConfigReply, error)
19 SwInterfaceIP6ndRaPrefix(ctx context.Context, in *SwInterfaceIP6ndRaPrefix) (*SwInterfaceIP6ndRaPrefixReply, error)
20 WantIP6RaEvents(ctx context.Context, in *WantIP6RaEvents) (*WantIP6RaEventsReply, error)
23 type serviceClient struct {
27 func NewServiceClient(conn api.Connection) RPCService {
28 return &serviceClient{conn}
31 func (c *serviceClient) IP6ndProxyAddDel(ctx context.Context, in *IP6ndProxyAddDel) (*IP6ndProxyAddDelReply, error) {
32 out := new(IP6ndProxyAddDelReply)
33 err := c.conn.Invoke(ctx, in, out)
40 func (c *serviceClient) IP6ndProxyDump(ctx context.Context, in *IP6ndProxyDump) (RPCService_IP6ndProxyDumpClient, error) {
41 stream, err := c.conn.NewStream(ctx)
45 x := &serviceClient_IP6ndProxyDumpClient{stream}
46 if err := x.Stream.SendMsg(in); err != nil {
49 if err = x.Stream.SendMsg(&vpe.ControlPing{}); err != nil {
55 type RPCService_IP6ndProxyDumpClient interface {
56 Recv() (*IP6ndProxyDetails, error)
60 type serviceClient_IP6ndProxyDumpClient struct {
64 func (c *serviceClient_IP6ndProxyDumpClient) Recv() (*IP6ndProxyDetails, error) {
65 msg, err := c.Stream.RecvMsg()
69 switch m := msg.(type) {
70 case *IP6ndProxyDetails:
72 case *vpe.ControlPingReply:
75 return nil, fmt.Errorf("unexpected message: %T %v", m, m)
79 func (c *serviceClient) IP6ndSendRouterSolicitation(ctx context.Context, in *IP6ndSendRouterSolicitation) (*IP6ndSendRouterSolicitationReply, error) {
80 out := new(IP6ndSendRouterSolicitationReply)
81 err := c.conn.Invoke(ctx, in, out)
88 func (c *serviceClient) SwInterfaceIP6ndRaConfig(ctx context.Context, in *SwInterfaceIP6ndRaConfig) (*SwInterfaceIP6ndRaConfigReply, error) {
89 out := new(SwInterfaceIP6ndRaConfigReply)
90 err := c.conn.Invoke(ctx, in, out)
97 func (c *serviceClient) SwInterfaceIP6ndRaPrefix(ctx context.Context, in *SwInterfaceIP6ndRaPrefix) (*SwInterfaceIP6ndRaPrefixReply, error) {
98 out := new(SwInterfaceIP6ndRaPrefixReply)
99 err := c.conn.Invoke(ctx, in, out)
106 func (c *serviceClient) WantIP6RaEvents(ctx context.Context, in *WantIP6RaEvents) (*WantIP6RaEventsReply, error) {
107 out := new(WantIP6RaEventsReply)
108 err := c.conn.Invoke(ctx, in, out)