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