Documentation ¶
Index ¶
- Variables
- func RegisterReportServiceServer(s grpc.ServiceRegistrar, srv ReportServiceServer)
- type GetRequest
- type GetResponse
- type Report
- type ReportServiceClient
- type ReportServiceServer
- type ReportService_GetClient
- type ReportService_GetServer
- type UnimplementedReportServiceServer
- type UnsafeReportServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_pkg_proto_report_v1_report_proto protoreflect.FileDescriptor
var ReportService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pkg.proto.report.v1.ReportService", HandlerType: (*ReportServiceServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "Get", Handler: _ReportService_Get_Handler, ServerStreams: true, }, }, Metadata: "pkg/proto/report/v1/report.proto", }
ReportService_ServiceDesc is the grpc.ServiceDesc for ReportService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterReportServiceServer ¶
func RegisterReportServiceServer(s grpc.ServiceRegistrar, srv ReportServiceServer)
Types ¶
type GetRequest ¶
type GetRequest struct {
// contains filtered or unexported fields
}
func (*GetRequest) Descriptor
deprecated
func (*GetRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) ProtoReflect ¶
func (x *GetRequest) ProtoReflect() protoreflect.Message
func (*GetRequest) Reset ¶
func (x *GetRequest) Reset()
func (*GetRequest) String ¶
func (x *GetRequest) String() string
type GetResponse ¶
type GetResponse struct { Report *Report `protobuf:"bytes,1,opt,name=report,proto3" json:"report,omitempty"` // contains filtered or unexported fields }
func (*GetResponse) Descriptor
deprecated
func (*GetResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.
func (*GetResponse) GetReport ¶
func (x *GetResponse) GetReport() *Report
func (*GetResponse) ProtoMessage ¶
func (*GetResponse) ProtoMessage()
func (*GetResponse) ProtoReflect ¶
func (x *GetResponse) ProtoReflect() protoreflect.Message
func (*GetResponse) Reset ¶
func (x *GetResponse) Reset()
func (*GetResponse) String ¶
func (x *GetResponse) String() string
type Report ¶
type Report struct { Cache string `protobuf:"bytes,2,opt,name=cache,proto3" json:"cache,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // contains filtered or unexported fields }
func (*Report) Descriptor
deprecated
func (*Report) GetUpdatedAt ¶
func (x *Report) GetUpdatedAt() *timestamppb.Timestamp
func (*Report) ProtoMessage ¶
func (*Report) ProtoMessage()
func (*Report) ProtoReflect ¶
func (x *Report) ProtoReflect() protoreflect.Message
type ReportServiceClient ¶
type ReportServiceClient interface {
Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (ReportService_GetClient, error)
}
ReportServiceClient is the client API for ReportService 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 NewReportServiceClient ¶
func NewReportServiceClient(cc grpc.ClientConnInterface) ReportServiceClient
type ReportServiceServer ¶
type ReportServiceServer interface { Get(*GetRequest, ReportService_GetServer) error // contains filtered or unexported methods }
ReportServiceServer is the server API for ReportService service. All implementations must embed UnimplementedReportServiceServer for forward compatibility
type ReportService_GetClient ¶
type ReportService_GetClient interface { Recv() (*GetResponse, error) grpc.ClientStream }
type ReportService_GetServer ¶
type ReportService_GetServer interface { Send(*GetResponse) error grpc.ServerStream }
type UnimplementedReportServiceServer ¶
type UnimplementedReportServiceServer struct { }
UnimplementedReportServiceServer must be embedded to have forward compatible implementations.
type UnsafeReportServiceServer ¶
type UnsafeReportServiceServer interface {
// contains filtered or unexported methods
}
UnsafeReportServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ReportServiceServer will result in compilation errors.