proto

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2025 License: MIT Imports: 8 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_recorder_proto protoreflect.FileDescriptor
View Source
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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL