writer_templates

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReportWriter_SendReportResult_FullMethodName = "/writer_templates.ReportWriter/SendReportResult"
)

Variables

View Source
var File_writer_templates_writer_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

func (x *Empty) ProtoReflect() protoreflect.Message

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

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.

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

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.

Jump to

Keyboard shortcuts

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