1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
8 api "git.fd.io/govpp.git/api"
11 // RPCService defines RPC service trace.
12 type RPCService interface {
13 TraceProfileAdd(ctx context.Context, in *TraceProfileAdd) (*TraceProfileAddReply, error)
14 TraceProfileDel(ctx context.Context, in *TraceProfileDel) (*TraceProfileDelReply, error)
15 TraceProfileShowConfig(ctx context.Context, in *TraceProfileShowConfig) (*TraceProfileShowConfigReply, error)
18 type serviceClient struct {
22 func NewServiceClient(conn api.Connection) RPCService {
23 return &serviceClient{conn}
26 func (c *serviceClient) TraceProfileAdd(ctx context.Context, in *TraceProfileAdd) (*TraceProfileAddReply, error) {
27 out := new(TraceProfileAddReply)
28 err := c.conn.Invoke(ctx, in, out)
32 return out, api.RetvalToVPPApiError(out.Retval)
35 func (c *serviceClient) TraceProfileDel(ctx context.Context, in *TraceProfileDel) (*TraceProfileDelReply, error) {
36 out := new(TraceProfileDelReply)
37 err := c.conn.Invoke(ctx, in, out)
41 return out, api.RetvalToVPPApiError(out.Retval)
44 func (c *serviceClient) TraceProfileShowConfig(ctx context.Context, in *TraceProfileShowConfig) (*TraceProfileShowConfigReply, error) {
45 out := new(TraceProfileShowConfigReply)
46 err := c.conn.Invoke(ctx, in, out)
50 return out, api.RetvalToVPPApiError(out.Retval)