Documentation ¶
Index ¶
- Variables
- func RegisterEPSServer(s grpc.ServiceRegistrar, srv EPSServer)
- type EPSClient
- type EPSServer
- type EPS_ServerCallClient
- type EPS_ServerCallServer
- type Error
- type Request
- func (*Request) Descriptor() ([]byte, []int)deprecated
- func (x *Request) GetClientName() string
- func (x *Request) GetId() string
- func (x *Request) GetMethod() string
- func (x *Request) GetParams() *_struct.Struct
- func (*Request) ProtoMessage()
- func (x *Request) ProtoReflect() protoreflect.Message
- func (x *Request) Reset()
- func (x *Request) String() string
- type Response
- func (*Response) Descriptor() ([]byte, []int)deprecated
- func (x *Response) GetError() *Error
- func (x *Response) GetId() string
- func (x *Response) GetResult() *_struct.Struct
- func (*Response) ProtoMessage()
- func (x *Response) ProtoReflect() protoreflect.Message
- func (x *Response) Reset()
- func (x *Response) String() string
- type UnimplementedEPSServer
- type UnsafeEPSServer
Constants ¶
This section is empty.
Variables ¶
var EPS_ServiceDesc = grpc.ServiceDesc{ ServiceName: "EPS", HandlerType: (*EPSServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Call", Handler: _EPS_Call_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "ServerCall", Handler: _EPS_ServerCall_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "protobuf/eps.proto", }
EPS_ServiceDesc is the grpc.ServiceDesc for EPS service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_protobuf_eps_proto protoreflect.FileDescriptor
Functions ¶
func RegisterEPSServer ¶
func RegisterEPSServer(s grpc.ServiceRegistrar, srv EPSServer)
Types ¶
type EPSClient ¶
type EPSClient interface { // client sends a request to the server and receives a response Call(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) // client sends a response to the server and receives an acknowledgment ServerCall(ctx context.Context, opts ...grpc.CallOption) (EPS_ServerCallClient, error) }
EPSClient is the client API for EPS service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.golang.ir/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewEPSClient ¶
func NewEPSClient(cc grpc.ClientConnInterface) EPSClient
type EPSServer ¶
type EPSServer interface { // client sends a request to the server and receives a response Call(context.Context, *Request) (*Response, error) // client sends a response to the server and receives an acknowledgment ServerCall(EPS_ServerCallServer) error // contains filtered or unexported methods }
EPSServer is the server API for EPS service. All implementations must embed UnimplementedEPSServer for forward compatibility
type EPS_ServerCallClient ¶
type EPS_ServerCallServer ¶
type Error ¶
type Error struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Data *_struct.Struct `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*Error) Descriptor
deprecated
func (*Error) GetMessage ¶
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
func (*Error) ProtoReflect ¶
func (x *Error) ProtoReflect() protoreflect.Message
type Request ¶
type Request struct { Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"` Params *_struct.Struct `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"` Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` ClientName string `protobuf:"bytes,4,opt,name=clientName,proto3" json:"clientName,omitempty"` // contains filtered or unexported fields }
A JSON-RPC style request
func (*Request) Descriptor
deprecated
func (*Request) GetClientName ¶ added in v0.1.20
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
type Response ¶
type Response struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Error *Error `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` Result *_struct.Struct `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"` // contains filtered or unexported fields }
A JSON-RPC style response
func (*Response) Descriptor
deprecated
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type UnimplementedEPSServer ¶
type UnimplementedEPSServer struct { }
UnimplementedEPSServer must be embedded to have forward compatible implementations.
func (UnimplementedEPSServer) ServerCall ¶
func (UnimplementedEPSServer) ServerCall(EPS_ServerCallServer) error
type UnsafeEPSServer ¶
type UnsafeEPSServer interface {
// contains filtered or unexported methods
}
UnsafeEPSServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EPSServer will result in compilation errors.