Documentation ¶
Index ¶
- Variables
- func RegisterReporterServer(s grpc.ServiceRegistrar, srv ReporterServer)
- type ReportReply
- type ReportRequest
- func (*ReportRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ReportRequest) GetMessage() string
- func (x *ReportRequest) GetToken() string
- func (*ReportRequest) ProtoMessage()
- func (x *ReportRequest) ProtoReflect() protoreflect.Message
- func (x *ReportRequest) Reset()
- func (x *ReportRequest) String() string
- type ReporterClient
- type ReporterServer
- type UnimplementedReporterServer
- type UnsafeReporterServer
Constants ¶
This section is empty.
Variables ¶
var File_protos_main_proto protoreflect.FileDescriptor
var Reporter_ServiceDesc = grpc.ServiceDesc{ ServiceName: "protos.Reporter", HandlerType: (*ReporterServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Report", Handler: _Reporter_Report_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "protos/main.proto", }
Reporter_ServiceDesc is the grpc.ServiceDesc for Reporter service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterReporterServer ¶
func RegisterReporterServer(s grpc.ServiceRegistrar, srv ReporterServer)
Types ¶
type ReportReply ¶
type ReportReply struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*ReportReply) Descriptor
deprecated
func (*ReportReply) Descriptor() ([]byte, []int)
Deprecated: Use ReportReply.ProtoReflect.Descriptor instead.
func (*ReportReply) GetMessage ¶
func (x *ReportReply) GetMessage() string
func (*ReportReply) ProtoMessage ¶
func (*ReportReply) ProtoMessage()
func (*ReportReply) ProtoReflect ¶
func (x *ReportReply) ProtoReflect() protoreflect.Message
func (*ReportReply) Reset ¶
func (x *ReportReply) Reset()
func (*ReportReply) String ¶
func (x *ReportReply) String() string
type ReportRequest ¶
type ReportRequest struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*ReportRequest) Descriptor
deprecated
func (*ReportRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReportRequest.ProtoReflect.Descriptor instead.
func (*ReportRequest) GetMessage ¶
func (x *ReportRequest) GetMessage() string
func (*ReportRequest) GetToken ¶
func (x *ReportRequest) GetToken() string
func (*ReportRequest) ProtoMessage ¶
func (*ReportRequest) ProtoMessage()
func (*ReportRequest) ProtoReflect ¶
func (x *ReportRequest) ProtoReflect() protoreflect.Message
func (*ReportRequest) Reset ¶
func (x *ReportRequest) Reset()
func (*ReportRequest) String ¶
func (x *ReportRequest) String() string
type ReporterClient ¶
type ReporterClient interface {
Report(ctx context.Context, in *ReportRequest, opts ...grpc.CallOption) (*ReportReply, error)
}
ReporterClient is the client API for Reporter 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 NewReporterClient ¶
func NewReporterClient(cc grpc.ClientConnInterface) ReporterClient
type ReporterServer ¶
type ReporterServer interface { Report(context.Context, *ReportRequest) (*ReportReply, error) // contains filtered or unexported methods }
ReporterServer is the server API for Reporter service. All implementations must embed UnimplementedReporterServer for forward compatibility
type UnimplementedReporterServer ¶
type UnimplementedReporterServer struct { }
UnimplementedReporterServer must be embedded to have forward compatible implementations.
func (UnimplementedReporterServer) Report ¶
func (UnimplementedReporterServer) Report(context.Context, *ReportRequest) (*ReportReply, error)
type UnsafeReporterServer ¶
type UnsafeReporterServer interface {
// contains filtered or unexported methods
}
UnsafeReporterServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ReporterServer will result in compilation errors.