Update generated binapi to v22.02 & makefile changes
[govpp.git] / internal / testbinapi / binapi2001 / tls_openssl / tls_openssl_rpc.ba.go
1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
2
3 package tls_openssl
4
5 import (
6         "context"
7
8         api "git.fd.io/govpp.git/api"
9 )
10
11 // RPCService defines RPC service tls_openssl.
12 type RPCService interface {
13         TLSOpensslSetEngine(ctx context.Context, in *TLSOpensslSetEngine) (*TLSOpensslSetEngineReply, 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) TLSOpensslSetEngine(ctx context.Context, in *TLSOpensslSetEngine) (*TLSOpensslSetEngineReply, error) {
25         out := new(TLSOpensslSetEngineReply)
26         err := c.conn.Invoke(ctx, in, out)
27         if err != nil {
28                 return nil, err
29         }
30         return out, api.RetvalToVPPApiError(out.Retval)
31 }