2575bf2aa5dee2f058731c8c93c7268dc4eb940c
[govpp.git] / binapi / 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         api "git.fd.io/govpp.git/api"
8 )
9
10 // RPCService defines RPC service  tls_openssl.
11 type RPCService interface {
12         TLSOpensslSetEngine(ctx context.Context, in *TLSOpensslSetEngine) (*TLSOpensslSetEngineReply, 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) TLSOpensslSetEngine(ctx context.Context, in *TLSOpensslSetEngine) (*TLSOpensslSetEngineReply, error) {
24         out := new(TLSOpensslSetEngineReply)
25         err := c.conn.Invoke(ctx, in, out)
26         if err != nil {
27                 return nil, err
28         }
29         return out, nil
30 }