Improve doc & fix import ordering
[govpp.git] / binapi / rd_cp / rd_cp_rpc.ba.go
1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
2
3 package rd_cp
4
5 import (
6         "context"
7
8         api "git.fd.io/govpp.git/api"
9 )
10
11 // RPCService defines RPC service  rd_cp.
12 type RPCService interface {
13         IP6NdAddressAutoconfig(ctx context.Context, in *IP6NdAddressAutoconfig) (*IP6NdAddressAutoconfigReply, error)
14 }
15
16 type serviceClient struct {
17         conn api.Connection
18 }
19
20 func NewServiceClient(conn api.Connection) RPCService {
21         return &serviceClient{conn}
22 }
23
24 func (c *serviceClient) IP6NdAddressAutoconfig(ctx context.Context, in *IP6NdAddressAutoconfig) (*IP6NdAddressAutoconfigReply, error) {
25         out := new(IP6NdAddressAutoconfigReply)
26         err := c.conn.Invoke(ctx, in, out)
27         if err != nil {
28                 return nil, err
29         }
30         return out, nil
31 }