aboutsummaryrefslogtreecommitdiffstats
path: root/binapi/ct6
diff options
context:
space:
mode:
Diffstat (limited to 'binapi/ct6')
-rw-r--r--binapi/ct6/ct6.ba.go12
-rw-r--r--binapi/ct6/ct6_rest.ba.go37
-rw-r--r--binapi/ct6/ct6_rpc.ba.go7
3 files changed, 10 insertions, 46 deletions
diff --git a/binapi/ct6/ct6.ba.go b/binapi/ct6/ct6.ba.go
index 5dc6097..9971a49 100644
--- a/binapi/ct6/ct6.ba.go
+++ b/binapi/ct6/ct6.ba.go
@@ -1,7 +1,7 @@
// Code generated by GoVPP's binapi-generator. DO NOT EDIT.
// versions:
-// binapi-generator: v0.4.0-dev
-// VPP: 20.05-release
+// binapi-generator: v0.6.0-dev
+// VPP: 22.02-release
// source: /usr/share/vpp/api/plugins/ct6.api.json
// Package ct6 contains generated bindings for API file ct6.api.
@@ -12,9 +12,9 @@
package ct6
import (
- api "git.fd.io/govpp.git/api"
- interface_types "git.fd.io/govpp.git/binapi/interface_types"
- codec "git.fd.io/govpp.git/codec"
+ api "go.fd.io/govpp/api"
+ interface_types "go.fd.io/govpp/binapi/interface_types"
+ codec "go.fd.io/govpp/codec"
)
// This is a compile-time assertion to ensure that this generated file
@@ -26,7 +26,7 @@ const _ = api.GoVppAPIPackageIsVersion2
const (
APIFile = "ct6"
APIVersion = "1.0.0"
- VersionCrc = 0xd9691434
+ VersionCrc = 0x5c824a95
)
// Ct6EnableDisable defines message 'ct6_enable_disable'.
diff --git a/binapi/ct6/ct6_rest.ba.go b/binapi/ct6/ct6_rest.ba.go
deleted file mode 100644
index a3ffcde..0000000
--- a/binapi/ct6/ct6_rest.ba.go
+++ /dev/null
@@ -1,37 +0,0 @@
-// Code generated by GoVPP's binapi-generator. DO NOT EDIT.
-
-package ct6
-
-import (
- "encoding/json"
- "io/ioutil"
- "net/http"
-)
-
-func RESTHandler(rpc RPCService) http.Handler {
- mux := http.NewServeMux()
- mux.HandleFunc("/ct6_enable_disable", func(w http.ResponseWriter, req *http.Request) {
- var request = new(Ct6EnableDisable)
- b, err := ioutil.ReadAll(req.Body)
- if err != nil {
- http.Error(w, "read body failed", http.StatusBadRequest)
- return
- }
- if err := json.Unmarshal(b, request); err != nil {
- http.Error(w, "unmarshal data failed", http.StatusBadRequest)
- return
- }
- reply, err := rpc.Ct6EnableDisable(req.Context(), request)
- if err != nil {
- http.Error(w, "request failed: "+err.Error(), http.StatusInternalServerError)
- return
- }
- rep, err := json.MarshalIndent(reply, "", " ")
- if err != nil {
- http.Error(w, "marshal failed: "+err.Error(), http.StatusInternalServerError)
- return
- }
- w.Write(rep)
- })
- return http.HandlerFunc(mux.ServeHTTP)
-}
diff --git a/binapi/ct6/ct6_rpc.ba.go b/binapi/ct6/ct6_rpc.ba.go
index 888fd32..14fb816 100644
--- a/binapi/ct6/ct6_rpc.ba.go
+++ b/binapi/ct6/ct6_rpc.ba.go
@@ -4,10 +4,11 @@ package ct6
import (
"context"
- api "git.fd.io/govpp.git/api"
+
+ api "go.fd.io/govpp/api"
)
-// RPCService defines RPC service ct6.
+// RPCService defines RPC service ct6.
type RPCService interface {
Ct6EnableDisable(ctx context.Context, in *Ct6EnableDisable) (*Ct6EnableDisableReply, error)
}
@@ -26,5 +27,5 @@ func (c *serviceClient) Ct6EnableDisable(ctx context.Context, in *Ct6EnableDisab
if err != nil {
return nil, err
}
- return out, nil
+ return out, api.RetvalToVPPApiError(out.Retval)
}