aboutsummaryrefslogtreecommitdiffstats
path: root/internal/testbinapi/binapi2001/sctp/sctp_rpc.ba.go
diff options
context:
space:
mode:
authorNathan Skrzypczak <nathan.skrzypczak@gmail.com>2022-05-30 17:18:34 +0200
committerNathan Skrzypczak <nathan.skrzypczak@gmail.com>2022-05-30 18:49:43 +0200
commite9567fa8c853dda16c54afbd2ba99b7263fa37f1 (patch)
treef722a72f13cccdd9f13bdaff200e734849ee0853 /internal/testbinapi/binapi2001/sctp/sctp_rpc.ba.go
parent4102c72bce694babd94a481b1201d33895a6f9c5 (diff)
binapi: remove internal/testbinapi
This patch is a proposal to remove the necessity to version two versions of the generated api. We would rely on `./binapi/` for 'internal' logic, making the dependancy on VPP a bit stronger, but removing a folder and a .json file we don't upgrade regularly. Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com> Change-Id: I99063ed571eb193271b3cda805d692155ac90f61
Diffstat (limited to 'internal/testbinapi/binapi2001/sctp/sctp_rpc.ba.go')
-rw-r--r--internal/testbinapi/binapi2001/sctp/sctp_rpc.ba.go51
1 files changed, 0 insertions, 51 deletions
diff --git a/internal/testbinapi/binapi2001/sctp/sctp_rpc.ba.go b/internal/testbinapi/binapi2001/sctp/sctp_rpc.ba.go
deleted file mode 100644
index 7e75326..0000000
--- a/internal/testbinapi/binapi2001/sctp/sctp_rpc.ba.go
+++ /dev/null
@@ -1,51 +0,0 @@
-// Code generated by GoVPP's binapi-generator. DO NOT EDIT.
-
-package sctp
-
-import (
- "context"
-
- api "git.fd.io/govpp.git/api"
-)
-
-// RPCService defines RPC service sctp.
-type RPCService interface {
- SctpAddSrcDstConnection(ctx context.Context, in *SctpAddSrcDstConnection) (*SctpAddSrcDstConnectionReply, error)
- SctpConfig(ctx context.Context, in *SctpConfig) (*SctpConfigReply, error)
- SctpDelSrcDstConnection(ctx context.Context, in *SctpDelSrcDstConnection) (*SctpDelSrcDstConnectionReply, error)
-}
-
-type serviceClient struct {
- conn api.Connection
-}
-
-func NewServiceClient(conn api.Connection) RPCService {
- return &serviceClient{conn}
-}
-
-func (c *serviceClient) SctpAddSrcDstConnection(ctx context.Context, in *SctpAddSrcDstConnection) (*SctpAddSrcDstConnectionReply, error) {
- out := new(SctpAddSrcDstConnectionReply)
- err := c.conn.Invoke(ctx, in, out)
- if err != nil {
- return nil, err
- }
- return out, api.RetvalToVPPApiError(out.Retval)
-}
-
-func (c *serviceClient) SctpConfig(ctx context.Context, in *SctpConfig) (*SctpConfigReply, error) {
- out := new(SctpConfigReply)
- err := c.conn.Invoke(ctx, in, out)
- if err != nil {
- return nil, err
- }
- return out, api.RetvalToVPPApiError(out.Retval)
-}
-
-func (c *serviceClient) SctpDelSrcDstConnection(ctx context.Context, in *SctpDelSrcDstConnection) (*SctpDelSrcDstConnectionReply, error) {
- out := new(SctpDelSrcDstConnectionReply)
- err := c.conn.Invoke(ctx, in, out)
- if err != nil {
- return nil, err
- }
- return out, api.RetvalToVPPApiError(out.Retval)
-}