// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.2.0
// - protoc v3.19.4
// source: model.proto
packagepbx
import(
context"context"
grpc"google.golang.org/grpc"
codes"google.golang.org/grpc/codes"
status"google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const_=grpc.SupportPackageIsVersion7
// NodeClient is the client API for Node service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
typeNodeClientinterface{
// Client sends a stream of ClientMsg, server responds with a stream of ServerMsg
// Node_ServiceDesc is the grpc.ServiceDesc for Node service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
varNode_ServiceDesc=grpc.ServiceDesc{
ServiceName:"pbx.Node",
HandlerType:(*NodeServer)(nil),
Methods:[]grpc.MethodDesc{},
Streams:[]grpc.StreamDesc{
{
StreamName:"MessageLoop",
Handler:_Node_MessageLoop_Handler,
ServerStreams:true,
ClientStreams:true,
},
},
Metadata:"model.proto",
}
// PluginClient is the client API for Plugin service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
typePluginClientinterface{
// This plugin method is called by Tinode server for every message received from the clients. The
// method returns a ServerCtrl message. Non-zero ServerCtrl.code indicates that no further
// processing is needed. The Tinode server will generate a {ctrl} message from the returned ServerCtrl
// and forward it to the client session.
// ServerCtrl.code equals to 0 instructs the server to continue with default processing of the client message.