1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
7 api "git.fd.io/govpp.git/api"
10 // RPCService defines RPC service sctp.
11 type RPCService interface {
12 SctpAddSrcDstConnection(ctx context.Context, in *SctpAddSrcDstConnection) (*SctpAddSrcDstConnectionReply, error)
13 SctpConfig(ctx context.Context, in *SctpConfig) (*SctpConfigReply, error)
14 SctpDelSrcDstConnection(ctx context.Context, in *SctpDelSrcDstConnection) (*SctpDelSrcDstConnectionReply, error)
17 type serviceClient struct {
21 func NewServiceClient(conn api.Connection) RPCService {
22 return &serviceClient{conn}
25 func (c *serviceClient) SctpAddSrcDstConnection(ctx context.Context, in *SctpAddSrcDstConnection) (*SctpAddSrcDstConnectionReply, error) {
26 out := new(SctpAddSrcDstConnectionReply)
27 err := c.conn.Invoke(ctx, in, out)
34 func (c *serviceClient) SctpConfig(ctx context.Context, in *SctpConfig) (*SctpConfigReply, error) {
35 out := new(SctpConfigReply)
36 err := c.conn.Invoke(ctx, in, out)
43 func (c *serviceClient) SctpDelSrcDstConnection(ctx context.Context, in *SctpDelSrcDstConnection) (*SctpDelSrcDstConnectionReply, error) {
44 out := new(SctpDelSrcDstConnectionReply)
45 err := c.conn.Invoke(ctx, in, out)