Documentation
¶
Index ¶
- Variables
- func RegisterHyperServer(s grpc.ServiceRegistrar, srv HyperServer)
- type Error
- func (*Error) Descriptor() ([]byte, []int)deprecated
- func (x *Error) GetCode() int32
- func (x *Error) GetData() *structpb.Struct
- func (x *Error) GetMessage() string
- func (*Error) ProtoMessage()
- func (x *Error) ProtoReflect() protoreflect.Message
- func (x *Error) Reset()
- func (x *Error) String() string
- type HyperClient
- type HyperServer
- type Hyper_ServerCallClient
- type Hyper_ServerCallServer
- 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() *structpb.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() *structpb.Struct
- func (*Response) ProtoMessage()
- func (x *Response) ProtoReflect() protoreflect.Message
- func (x *Response) Reset()
- func (x *Response) String() string
- type UnimplementedHyperServer
- type UnsafeHyperServer
Constants ¶
This section is empty.
Variables ¶
var File_protobuf_hyper_proto protoreflect.FileDescriptor
var Hyper_ServiceDesc = grpc.ServiceDesc{ ServiceName: "Hyper", HandlerType: (*HyperServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Call", Handler: _Hyper_Call_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "ServerCall", Handler: _Hyper_ServerCall_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "protobuf/hyper.proto", }
Hyper_ServiceDesc is the grpc.ServiceDesc for Hyper service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterHyperServer ¶
func RegisterHyperServer(s grpc.ServiceRegistrar, srv HyperServer)
Types ¶
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 *structpb.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 HyperClient ¶
type HyperClient 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) (Hyper_ServerCallClient, error) }
HyperClient is the client API for Hyper 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.
func NewHyperClient ¶
func NewHyperClient(cc grpc.ClientConnInterface) HyperClient
type HyperServer ¶
type HyperServer 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(Hyper_ServerCallServer) error // contains filtered or unexported methods }
HyperServer is the server API for Hyper service. All implementations must embed UnimplementedHyperServer for forward compatibility
type Hyper_ServerCallClient ¶
type Hyper_ServerCallServer ¶
type Request ¶
type Request struct { Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"` Params *structpb.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 ¶
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 *structpb.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 UnimplementedHyperServer ¶
type UnimplementedHyperServer struct { }
UnimplementedHyperServer must be embedded to have forward compatible implementations.
func (UnimplementedHyperServer) ServerCall ¶
func (UnimplementedHyperServer) ServerCall(Hyper_ServerCallServer) error
type UnsafeHyperServer ¶
type UnsafeHyperServer interface {
// contains filtered or unexported methods
}
UnsafeHyperServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to HyperServer will result in compilation errors.