f0f2ca7ec491f390acc17e5e3f3cc46d462700f5
[govpp.git] / binapi / trace / trace_rpc.ba.go
1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
2
3 package trace
4
5 import (
6         "context"
7         api "git.fd.io/govpp.git/api"
8 )
9
10 // RPCService defines RPC service  trace.
11 type RPCService interface {
12         TraceProfileAdd(ctx context.Context, in *TraceProfileAdd) (*TraceProfileAddReply, error)
13         TraceProfileDel(ctx context.Context, in *TraceProfileDel) (*TraceProfileDelReply, error)
14         TraceProfileShowConfig(ctx context.Context, in *TraceProfileShowConfig) (*TraceProfileShowConfigReply, error)
15 }
16
17 type serviceClient struct {
18         conn api.Connection
19 }
20
21 func NewServiceClient(conn api.Connection) RPCService {
22         return &serviceClient{conn}
23 }
24
25 func (c *serviceClient) TraceProfileAdd(ctx context.Context, in *TraceProfileAdd) (*TraceProfileAddReply, error) {
26         out := new(TraceProfileAddReply)
27         err := c.conn.Invoke(ctx, in, out)
28         if err != nil {
29                 return nil, err
30         }
31         return out, nil
32 }
33
34 func (c *serviceClient) TraceProfileDel(ctx context.Context, in *TraceProfileDel) (*TraceProfileDelReply, error) {
35         out := new(TraceProfileDelReply)
36         err := c.conn.Invoke(ctx, in, out)
37         if err != nil {
38                 return nil, err
39         }
40         return out, nil
41 }
42
43 func (c *serviceClient) TraceProfileShowConfig(ctx context.Context, in *TraceProfileShowConfig) (*TraceProfileShowConfigReply, error) {
44         out := new(TraceProfileShowConfigReply)
45         err := c.conn.Invoke(ctx, in, out)
46         if err != nil {
47                 return nil, err
48         }
49         return out, nil
50 }