Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterReportWriterServer(s grpc.ServiceRegistrar, srv ReportWriterServer)
- type Empty
- type ReportResult
- func (*ReportResult) Descriptor() ([]byte, []int)deprecated
- func (x *ReportResult) GetAPI() string
- func (x *ReportResult) GetAverage() int64
- func (x *ReportResult) GetCount() int32
- func (x *ReportResult) GetError() int32
- func (x *ReportResult) GetLastErrorMessage() string
- func (x *ReportResult) GetMax() int64
- func (x *ReportResult) GetMin() int64
- func (x *ReportResult) GetName() string
- func (x *ReportResult) GetQPS() int32
- func (*ReportResult) ProtoMessage()
- func (x *ReportResult) ProtoReflect() protoreflect.Message
- func (x *ReportResult) Reset()
- func (x *ReportResult) String() string
- type ReportResultRepeated
- func (*ReportResultRepeated) Descriptor() ([]byte, []int)deprecated
- func (x *ReportResultRepeated) GetData() []*ReportResult
- func (*ReportResultRepeated) ProtoMessage()
- func (x *ReportResultRepeated) ProtoReflect() protoreflect.Message
- func (x *ReportResultRepeated) Reset()
- func (x *ReportResultRepeated) String() string
- type ReportServer
- type ReportWriterClient
- type ReportWriterServer
- type UnimplementedReportWriterServer
- type UnsafeReportWriterServer
Constants ¶
const (
ReportWriter_SendReportResult_FullMethodName = "/writer_templates.ReportWriter/SendReportResult"
)
Variables ¶
var File_writer_templates_writer_proto protoreflect.FileDescriptor
var ReportWriter_ServiceDesc = grpc.ServiceDesc{ ServiceName: "writer_templates.ReportWriter", HandlerType: (*ReportWriterServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SendReportResult", Handler: _ReportWriter_SendReportResult_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "writer_templates/writer.proto", }
ReportWriter_ServiceDesc is the grpc.ServiceDesc for ReportWriter service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterReportWriterServer ¶
func RegisterReportWriterServer(s grpc.ServiceRegistrar, srv ReportWriterServer)
Types ¶
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type ReportResult ¶
type ReportResult struct { Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` API string `protobuf:"bytes,2,opt,name=API,proto3" json:"API,omitempty"` Count int32 `protobuf:"varint,3,opt,name=Count,proto3" json:"Count,omitempty"` Average int64 `protobuf:"varint,4,opt,name=Average,proto3" json:"Average,omitempty"` Max int64 `protobuf:"varint,5,opt,name=Max,proto3" json:"Max,omitempty"` Min int64 `protobuf:"varint,6,opt,name=Min,proto3" json:"Min,omitempty"` QPS int32 `protobuf:"varint,7,opt,name=QPS,proto3" json:"QPS,omitempty"` Error int32 `protobuf:"varint,8,opt,name=Error,proto3" json:"Error,omitempty"` LastErrorMessage string `protobuf:"bytes,9,opt,name=LastErrorMessage,proto3" json:"LastErrorMessage,omitempty"` // contains filtered or unexported fields }
func (*ReportResult) Descriptor
deprecated
func (*ReportResult) Descriptor() ([]byte, []int)
Deprecated: Use ReportResult.ProtoReflect.Descriptor instead.
func (*ReportResult) GetAPI ¶
func (x *ReportResult) GetAPI() string
func (*ReportResult) GetAverage ¶
func (x *ReportResult) GetAverage() int64
func (*ReportResult) GetCount ¶
func (x *ReportResult) GetCount() int32
func (*ReportResult) GetError ¶
func (x *ReportResult) GetError() int32
func (*ReportResult) GetLastErrorMessage ¶
func (x *ReportResult) GetLastErrorMessage() string
func (*ReportResult) GetMax ¶
func (x *ReportResult) GetMax() int64
func (*ReportResult) GetMin ¶
func (x *ReportResult) GetMin() int64
func (*ReportResult) GetName ¶
func (x *ReportResult) GetName() string
func (*ReportResult) GetQPS ¶
func (x *ReportResult) GetQPS() int32
func (*ReportResult) ProtoMessage ¶
func (*ReportResult) ProtoMessage()
func (*ReportResult) ProtoReflect ¶
func (x *ReportResult) ProtoReflect() protoreflect.Message
func (*ReportResult) Reset ¶
func (x *ReportResult) Reset()
func (*ReportResult) String ¶
func (x *ReportResult) String() string
type ReportResultRepeated ¶
type ReportResultRepeated struct { Data []*ReportResult `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*ReportResultRepeated) Descriptor
deprecated
func (*ReportResultRepeated) Descriptor() ([]byte, []int)
Deprecated: Use ReportResultRepeated.ProtoReflect.Descriptor instead.
func (*ReportResultRepeated) GetData ¶
func (x *ReportResultRepeated) GetData() []*ReportResult
func (*ReportResultRepeated) ProtoMessage ¶
func (*ReportResultRepeated) ProtoMessage()
func (*ReportResultRepeated) ProtoReflect ¶
func (x *ReportResultRepeated) ProtoReflect() protoreflect.Message
func (*ReportResultRepeated) Reset ¶
func (x *ReportResultRepeated) Reset()
func (*ReportResultRepeated) String ¶
func (x *ReportResultRepeated) String() string
type ReportServer ¶
type ReportServer struct {
UnimplementedReportWriterServer
}
func (*ReportServer) SendReportResult ¶
func (s *ReportServer) SendReportResult(ctx context.Context, req *ReportResultRepeated) (*Empty, error)
type ReportWriterClient ¶
type ReportWriterClient interface {
SendReportResult(ctx context.Context, in *ReportResultRepeated, opts ...grpc.CallOption) (*Empty, error)
}
ReportWriterClient is the client API for ReportWriter 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 NewReportWriterClient ¶
func NewReportWriterClient(cc grpc.ClientConnInterface) ReportWriterClient
type ReportWriterServer ¶
type ReportWriterServer interface { SendReportResult(context.Context, *ReportResultRepeated) (*Empty, error) // contains filtered or unexported methods }
ReportWriterServer is the server API for ReportWriter service. All implementations must embed UnimplementedReportWriterServer for forward compatibility
type UnimplementedReportWriterServer ¶
type UnimplementedReportWriterServer struct { }
UnimplementedReportWriterServer must be embedded to have forward compatible implementations.
func (UnimplementedReportWriterServer) SendReportResult ¶
func (UnimplementedReportWriterServer) SendReportResult(context.Context, *ReportResultRepeated) (*Empty, error)
type UnsafeReportWriterServer ¶
type UnsafeReportWriterServer interface {
// contains filtered or unexported methods
}
UnsafeReportWriterServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ReportWriterServer will result in compilation errors.