1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
8 api "git.fd.io/govpp.git/api"
12 // RPCService defines RPC service vpe.
13 type RPCService interface {
14 AddNodeNext(ctx context.Context, in *AddNodeNext) (*AddNodeNextReply, error)
15 Cli(ctx context.Context, in *Cli) (*CliReply, error)
16 CliInband(ctx context.Context, in *CliInband) (*CliInbandReply, error)
17 ControlPing(ctx context.Context, in *ControlPing) (*ControlPingReply, error)
18 GetF64EndianValue(ctx context.Context, in *GetF64EndianValue) (*GetF64EndianValueReply, error)
19 GetF64IncrementByOne(ctx context.Context, in *GetF64IncrementByOne) (*GetF64IncrementByOneReply, error)
20 GetNextIndex(ctx context.Context, in *GetNextIndex) (*GetNextIndexReply, error)
21 GetNodeGraph(ctx context.Context, in *GetNodeGraph) (*GetNodeGraphReply, error)
22 GetNodeIndex(ctx context.Context, in *GetNodeIndex) (*GetNodeIndexReply, error)
23 LogDump(ctx context.Context, in *LogDump) (RPCService_LogDumpClient, error)
24 ShowThreads(ctx context.Context, in *ShowThreads) (*ShowThreadsReply, error)
25 ShowVersion(ctx context.Context, in *ShowVersion) (*ShowVersionReply, error)
26 ShowVpeSystemTime(ctx context.Context, in *ShowVpeSystemTime) (*ShowVpeSystemTimeReply, error)
29 type serviceClient struct {
33 func NewServiceClient(conn api.Connection) RPCService {
34 return &serviceClient{conn}
37 func (c *serviceClient) AddNodeNext(ctx context.Context, in *AddNodeNext) (*AddNodeNextReply, error) {
38 out := new(AddNodeNextReply)
39 err := c.conn.Invoke(ctx, in, out)
46 func (c *serviceClient) Cli(ctx context.Context, in *Cli) (*CliReply, error) {
48 err := c.conn.Invoke(ctx, in, out)
55 func (c *serviceClient) CliInband(ctx context.Context, in *CliInband) (*CliInbandReply, error) {
56 out := new(CliInbandReply)
57 err := c.conn.Invoke(ctx, in, out)
64 func (c *serviceClient) ControlPing(ctx context.Context, in *ControlPing) (*ControlPingReply, error) {
65 out := new(ControlPingReply)
66 err := c.conn.Invoke(ctx, in, out)
73 func (c *serviceClient) GetF64EndianValue(ctx context.Context, in *GetF64EndianValue) (*GetF64EndianValueReply, error) {
74 out := new(GetF64EndianValueReply)
75 err := c.conn.Invoke(ctx, in, out)
82 func (c *serviceClient) GetF64IncrementByOne(ctx context.Context, in *GetF64IncrementByOne) (*GetF64IncrementByOneReply, error) {
83 out := new(GetF64IncrementByOneReply)
84 err := c.conn.Invoke(ctx, in, out)
91 func (c *serviceClient) GetNextIndex(ctx context.Context, in *GetNextIndex) (*GetNextIndexReply, error) {
92 out := new(GetNextIndexReply)
93 err := c.conn.Invoke(ctx, in, out)
100 func (c *serviceClient) GetNodeGraph(ctx context.Context, in *GetNodeGraph) (*GetNodeGraphReply, error) {
101 out := new(GetNodeGraphReply)
102 err := c.conn.Invoke(ctx, in, out)
109 func (c *serviceClient) GetNodeIndex(ctx context.Context, in *GetNodeIndex) (*GetNodeIndexReply, error) {
110 out := new(GetNodeIndexReply)
111 err := c.conn.Invoke(ctx, in, out)
118 func (c *serviceClient) LogDump(ctx context.Context, in *LogDump) (RPCService_LogDumpClient, error) {
119 stream, err := c.conn.NewStream(ctx)
123 x := &serviceClient_LogDumpClient{stream}
124 if err := x.Stream.SendMsg(in); err != nil {
127 if err = x.Stream.SendMsg(&ControlPing{}); err != nil {
133 type RPCService_LogDumpClient interface {
134 Recv() (*LogDetails, error)
138 type serviceClient_LogDumpClient struct {
142 func (c *serviceClient_LogDumpClient) Recv() (*LogDetails, error) {
143 msg, err := c.Stream.RecvMsg()
147 switch m := msg.(type) {
150 case *ControlPingReply:
153 return nil, fmt.Errorf("unexpected message: %T %v", m, m)
157 func (c *serviceClient) ShowThreads(ctx context.Context, in *ShowThreads) (*ShowThreadsReply, error) {
158 out := new(ShowThreadsReply)
159 err := c.conn.Invoke(ctx, in, out)
166 func (c *serviceClient) ShowVersion(ctx context.Context, in *ShowVersion) (*ShowVersionReply, error) {
167 out := new(ShowVersionReply)
168 err := c.conn.Invoke(ctx, in, out)
175 func (c *serviceClient) ShowVpeSystemTime(ctx context.Context, in *ShowVpeSystemTime) (*ShowVpeSystemTimeReply, error) {
176 out := new(ShowVpeSystemTimeReply)
177 err := c.conn.Invoke(ctx, in, out)