diff options
author | Nathan Skrzypczak <nathan.skrzypczak@gmail.com> | 2022-05-30 17:18:34 +0200 |
---|---|---|
committer | Nathan Skrzypczak <nathan.skrzypczak@gmail.com> | 2022-05-30 18:49:43 +0200 |
commit | e9567fa8c853dda16c54afbd2ba99b7263fa37f1 (patch) | |
tree | f722a72f13cccdd9f13bdaff200e734849ee0853 /internal/testbinapi/binapi2001/http_static/http_static_rpc.ba.go | |
parent | 4102c72bce694babd94a481b1201d33895a6f9c5 (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/http_static/http_static_rpc.ba.go')
-rw-r--r-- | internal/testbinapi/binapi2001/http_static/http_static_rpc.ba.go | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/internal/testbinapi/binapi2001/http_static/http_static_rpc.ba.go b/internal/testbinapi/binapi2001/http_static/http_static_rpc.ba.go deleted file mode 100644 index 12bd4c1..0000000 --- a/internal/testbinapi/binapi2001/http_static/http_static_rpc.ba.go +++ /dev/null @@ -1,31 +0,0 @@ -// Code generated by GoVPP's binapi-generator. DO NOT EDIT. - -package http_static - -import ( - "context" - - api "git.fd.io/govpp.git/api" -) - -// RPCService defines RPC service http_static. -type RPCService interface { - HTTPStaticEnable(ctx context.Context, in *HTTPStaticEnable) (*HTTPStaticEnableReply, error) -} - -type serviceClient struct { - conn api.Connection -} - -func NewServiceClient(conn api.Connection) RPCService { - return &serviceClient{conn} -} - -func (c *serviceClient) HTTPStaticEnable(ctx context.Context, in *HTTPStaticEnable) (*HTTPStaticEnableReply, error) { - out := new(HTTPStaticEnableReply) - err := c.conn.Invoke(ctx, in, out) - if err != nil { - return nil, err - } - return out, api.RetvalToVPPApiError(out.Retval) -} |