Documentation
¶
Index ¶
- Variables
- func RegisterRecorderServer(s grpc.ServiceRegistrar, srv RecorderServer)
- type RecordReply
- type RecordRequest
- func (*RecordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RecordRequest) GetData() []byte
- func (x *RecordRequest) GetMetadata() []byte
- func (*RecordRequest) ProtoMessage()
- func (x *RecordRequest) ProtoReflect() protoreflect.Message
- func (x *RecordRequest) Reset()
- func (x *RecordRequest) String() string
- type RecorderClient
- type RecorderServer
- type UnimplementedRecorderServer
- type UnsafeRecorderServer
Constants ¶
This section is empty.
Variables ¶
var File_recorder_proto protoreflect.FileDescriptor
var Recorder_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.Recorder", HandlerType: (*RecorderServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Record", Handler: _Recorder_Record_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "recorder.proto", }
Recorder_ServiceDesc is the grpc.ServiceDesc for Recorder service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterRecorderServer ¶
func RegisterRecorderServer(s grpc.ServiceRegistrar, srv RecorderServer)
Types ¶
type RecordReply ¶
type RecordReply struct {
Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
// contains filtered or unexported fields
}
func (*RecordReply) Descriptor
deprecated
func (*RecordReply) Descriptor() ([]byte, []int)
Deprecated: Use RecordReply.ProtoReflect.Descriptor instead.
func (*RecordReply) GetOk ¶
func (x *RecordReply) GetOk() bool
func (*RecordReply) ProtoMessage ¶
func (*RecordReply) ProtoMessage()
func (*RecordReply) ProtoReflect ¶
func (x *RecordReply) ProtoReflect() protoreflect.Message
func (*RecordReply) Reset ¶
func (x *RecordReply) Reset()
func (*RecordReply) String ¶
func (x *RecordReply) String() string
type RecordRequest ¶
type RecordRequest struct {
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
Metadata []byte `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
// contains filtered or unexported fields
}
func (*RecordRequest) Descriptor
deprecated
func (*RecordRequest) Descriptor() ([]byte, []int)
Deprecated: Use RecordRequest.ProtoReflect.Descriptor instead.
func (*RecordRequest) GetData ¶
func (x *RecordRequest) GetData() []byte
func (*RecordRequest) GetMetadata ¶
func (x *RecordRequest) GetMetadata() []byte
func (*RecordRequest) ProtoMessage ¶
func (*RecordRequest) ProtoMessage()
func (*RecordRequest) ProtoReflect ¶
func (x *RecordRequest) ProtoReflect() protoreflect.Message
func (*RecordRequest) Reset ¶
func (x *RecordRequest) Reset()
func (*RecordRequest) String ¶
func (x *RecordRequest) String() string
type RecorderClient ¶
type RecorderClient interface {
Record(ctx context.Context, in *RecordRequest, opts ...grpc.CallOption) (*RecordReply, error)
}
RecorderClient is the client API for Recorder 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 NewRecorderClient ¶
func NewRecorderClient(cc grpc.ClientConnInterface) RecorderClient
type RecorderServer ¶
type RecorderServer interface {
Record(context.Context, *RecordRequest) (*RecordReply, error)
// contains filtered or unexported methods
}
RecorderServer is the server API for Recorder service. All implementations must embed UnimplementedRecorderServer for forward compatibility
type UnimplementedRecorderServer ¶
type UnimplementedRecorderServer struct {
}
UnimplementedRecorderServer must be embedded to have forward compatible implementations.
func (UnimplementedRecorderServer) Record ¶
func (UnimplementedRecorderServer) Record(context.Context, *RecordRequest) (*RecordReply, error)
type UnsafeRecorderServer ¶
type UnsafeRecorderServer interface {
// contains filtered or unexported methods
}
UnsafeRecorderServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RecorderServer will result in compilation errors.