1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
8 api "git.fd.io/govpp.git/api"
9 vpe "git.fd.io/govpp.git/binapi/vpe"
13 // RPCService defines RPC service lisp_gpe.
14 type RPCService interface {
15 GpeAddDelFwdEntry(ctx context.Context, in *GpeAddDelFwdEntry) (*GpeAddDelFwdEntryReply, error)
16 GpeAddDelIface(ctx context.Context, in *GpeAddDelIface) (*GpeAddDelIfaceReply, error)
17 GpeAddDelNativeFwdRpath(ctx context.Context, in *GpeAddDelNativeFwdRpath) (*GpeAddDelNativeFwdRpathReply, error)
18 GpeEnableDisable(ctx context.Context, in *GpeEnableDisable) (*GpeEnableDisableReply, error)
19 GpeFwdEntriesGet(ctx context.Context, in *GpeFwdEntriesGet) (*GpeFwdEntriesGetReply, error)
20 GpeFwdEntryPathDump(ctx context.Context, in *GpeFwdEntryPathDump) (RPCService_GpeFwdEntryPathDumpClient, error)
21 GpeFwdEntryVnisGet(ctx context.Context, in *GpeFwdEntryVnisGet) (*GpeFwdEntryVnisGetReply, error)
22 GpeGetEncapMode(ctx context.Context, in *GpeGetEncapMode) (*GpeGetEncapModeReply, error)
23 GpeNativeFwdRpathsGet(ctx context.Context, in *GpeNativeFwdRpathsGet) (*GpeNativeFwdRpathsGetReply, error)
24 GpeSetEncapMode(ctx context.Context, in *GpeSetEncapMode) (*GpeSetEncapModeReply, error)
27 type serviceClient struct {
31 func NewServiceClient(conn api.Connection) RPCService {
32 return &serviceClient{conn}
35 func (c *serviceClient) GpeAddDelFwdEntry(ctx context.Context, in *GpeAddDelFwdEntry) (*GpeAddDelFwdEntryReply, error) {
36 out := new(GpeAddDelFwdEntryReply)
37 err := c.conn.Invoke(ctx, in, out)
44 func (c *serviceClient) GpeAddDelIface(ctx context.Context, in *GpeAddDelIface) (*GpeAddDelIfaceReply, error) {
45 out := new(GpeAddDelIfaceReply)
46 err := c.conn.Invoke(ctx, in, out)
53 func (c *serviceClient) GpeAddDelNativeFwdRpath(ctx context.Context, in *GpeAddDelNativeFwdRpath) (*GpeAddDelNativeFwdRpathReply, error) {
54 out := new(GpeAddDelNativeFwdRpathReply)
55 err := c.conn.Invoke(ctx, in, out)
62 func (c *serviceClient) GpeEnableDisable(ctx context.Context, in *GpeEnableDisable) (*GpeEnableDisableReply, error) {
63 out := new(GpeEnableDisableReply)
64 err := c.conn.Invoke(ctx, in, out)
71 func (c *serviceClient) GpeFwdEntriesGet(ctx context.Context, in *GpeFwdEntriesGet) (*GpeFwdEntriesGetReply, error) {
72 out := new(GpeFwdEntriesGetReply)
73 err := c.conn.Invoke(ctx, in, out)
80 func (c *serviceClient) GpeFwdEntryPathDump(ctx context.Context, in *GpeFwdEntryPathDump) (RPCService_GpeFwdEntryPathDumpClient, error) {
81 stream, err := c.conn.NewStream(ctx)
85 x := &serviceClient_GpeFwdEntryPathDumpClient{stream}
86 if err := x.Stream.SendMsg(in); err != nil {
89 if err = x.Stream.SendMsg(&vpe.ControlPing{}); err != nil {
95 type RPCService_GpeFwdEntryPathDumpClient interface {
96 Recv() (*GpeFwdEntryPathDetails, error)
100 type serviceClient_GpeFwdEntryPathDumpClient struct {
104 func (c *serviceClient_GpeFwdEntryPathDumpClient) Recv() (*GpeFwdEntryPathDetails, error) {
105 msg, err := c.Stream.RecvMsg()
109 switch m := msg.(type) {
110 case *GpeFwdEntryPathDetails:
112 case *vpe.ControlPingReply:
115 return nil, fmt.Errorf("unexpected message: %T %v", m, m)
119 func (c *serviceClient) GpeFwdEntryVnisGet(ctx context.Context, in *GpeFwdEntryVnisGet) (*GpeFwdEntryVnisGetReply, error) {
120 out := new(GpeFwdEntryVnisGetReply)
121 err := c.conn.Invoke(ctx, in, out)
128 func (c *serviceClient) GpeGetEncapMode(ctx context.Context, in *GpeGetEncapMode) (*GpeGetEncapModeReply, error) {
129 out := new(GpeGetEncapModeReply)
130 err := c.conn.Invoke(ctx, in, out)
137 func (c *serviceClient) GpeNativeFwdRpathsGet(ctx context.Context, in *GpeNativeFwdRpathsGet) (*GpeNativeFwdRpathsGetReply, error) {
138 out := new(GpeNativeFwdRpathsGetReply)
139 err := c.conn.Invoke(ctx, in, out)
146 func (c *serviceClient) GpeSetEncapMode(ctx context.Context, in *GpeSetEncapMode) (*GpeSetEncapModeReply, error) {
147 out := new(GpeSetEncapModeReply)
148 err := c.conn.Invoke(ctx, in, out)