1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
8 api "go.fd.io/govpp/api"
11 // RPCService defines RPC service lldp.
12 type RPCService interface {
13 LldpConfig(ctx context.Context, in *LldpConfig) (*LldpConfigReply, error)
14 SwInterfaceSetLldp(ctx context.Context, in *SwInterfaceSetLldp) (*SwInterfaceSetLldpReply, error)
17 type serviceClient struct {
21 func NewServiceClient(conn api.Connection) RPCService {
22 return &serviceClient{conn}
25 func (c *serviceClient) LldpConfig(ctx context.Context, in *LldpConfig) (*LldpConfigReply, error) {
26 out := new(LldpConfigReply)
27 err := c.conn.Invoke(ctx, in, out)
31 return out, api.RetvalToVPPApiError(out.Retval)
34 func (c *serviceClient) SwInterfaceSetLldp(ctx context.Context, in *SwInterfaceSetLldp) (*SwInterfaceSetLldpReply, error) {
35 out := new(SwInterfaceSetLldpReply)
36 err := c.conn.Invoke(ctx, in, out)
40 return out, api.RetvalToVPPApiError(out.Retval)