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