diff options
author | 2020-08-21 17:25:53 +0200 | |
---|---|---|
committer | 2020-09-03 15:11:13 +0000 | |
commit | c94a962279858fb13eaacc689f47aed358373e44 (patch) | |
tree | 0cade1807c10ed53bf7c1b623f4d26da639356f6 /binapi/pp2/pp2_rpc.ba.go | |
parent | 42d11af03300fe0a3476c32ad8c70297862d9320 (diff) |
Improve doc & fix import ordering
This also updates /binapi
and adds a new make command to generate api
files out of a local vpp repo clone
Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>
Change-Id: Iff7965388a74ecd21af80f10b5a59d4ed8da6340
Diffstat (limited to 'binapi/pp2/pp2_rpc.ba.go')
-rw-r--r-- | binapi/pp2/pp2_rpc.ba.go | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/binapi/pp2/pp2_rpc.ba.go b/binapi/pp2/pp2_rpc.ba.go new file mode 100644 index 0000000..d1f0bf5 --- /dev/null +++ b/binapi/pp2/pp2_rpc.ba.go @@ -0,0 +1,41 @@ +// Code generated by GoVPP's binapi-generator. DO NOT EDIT. + +package pp2 + +import ( + "context" + + api "git.fd.io/govpp.git/api" +) + +// RPCService defines RPC service pp2. +type RPCService interface { + MrvlPp2Create(ctx context.Context, in *MrvlPp2Create) (*MrvlPp2CreateReply, error) + MrvlPp2Delete(ctx context.Context, in *MrvlPp2Delete) (*MrvlPp2DeleteReply, error) +} + +type serviceClient struct { + conn api.Connection +} + +func NewServiceClient(conn api.Connection) RPCService { + return &serviceClient{conn} +} + +func (c *serviceClient) MrvlPp2Create(ctx context.Context, in *MrvlPp2Create) (*MrvlPp2CreateReply, error) { + out := new(MrvlPp2CreateReply) + err := c.conn.Invoke(ctx, in, out) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *serviceClient) MrvlPp2Delete(ctx context.Context, in *MrvlPp2Delete) (*MrvlPp2DeleteReply, error) { + out := new(MrvlPp2DeleteReply) + err := c.conn.Invoke(ctx, in, out) + if err != nil { + return nil, err + } + return out, nil +} |