Documentation ¶
Index ¶
- Variables
- func RegisterResultServiceServer(s *grpc.Server, srv ResultServiceServer)
- type ResultFloat
- type ResultInt64
- type ResultResponse
- func (*ResultResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ResultResponse) GetMessage() string
- func (x *ResultResponse) GetStatus() ResultStatus
- func (*ResultResponse) ProtoMessage()
- func (x *ResultResponse) ProtoReflect() protoreflect.Message
- func (x *ResultResponse) Reset()
- func (x *ResultResponse) String() string
- type ResultRow
- func (*ResultRow) Descriptor() ([]byte, []int)deprecated
- func (x *ResultRow) GetFloatresult() *ResultFloat
- func (x *ResultRow) GetIntresult() *ResultInt64
- func (m *ResultRow) GetResult() isResultRow_Result
- func (*ResultRow) ProtoMessage()
- func (x *ResultRow) ProtoReflect() protoreflect.Message
- func (x *ResultRow) Reset()
- func (x *ResultRow) String() string
- type ResultRow_Floatresult
- type ResultRow_Intresult
- type ResultServiceClient
- type ResultServiceServer
- type ResultStatus
- func (ResultStatus) Descriptor() protoreflect.EnumDescriptor
- func (x ResultStatus) Enum() *ResultStatus
- func (ResultStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x ResultStatus) Number() protoreflect.EnumNumber
- func (x ResultStatus) String() string
- func (ResultStatus) Type() protoreflect.EnumType
- type Results
- func (*Results) Descriptor() ([]byte, []int)deprecated
- func (x *Results) GetHost() string
- func (x *Results) GetProbe() string
- func (x *Results) GetResultrows() []*ResultRow
- func (x *Results) GetSource() string
- func (x *Results) GetTime() uint64
- func (*Results) ProtoMessage()
- func (x *Results) ProtoReflect() protoreflect.Message
- func (x *Results) Reset()
- func (x *Results) String() string
- type UnimplementedResultServiceServer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ResultStatus_name = map[int32]string{ 0: "RESULT_OK", 1: "RESULT_FAILED", } ResultStatus_value = map[string]int32{ "RESULT_OK": 0, "RESULT_FAILED": 1, } )
Enum value maps for ResultStatus.
View Source
var File_proto_proto_proto protoreflect.FileDescriptor
Functions ¶
func RegisterResultServiceServer ¶
func RegisterResultServiceServer(s *grpc.Server, srv ResultServiceServer)
Types ¶
type ResultFloat ¶
type ResultFloat struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value float64 `protobuf:"fixed64,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*ResultFloat) Descriptor
deprecated
func (*ResultFloat) Descriptor() ([]byte, []int)
Deprecated: Use ResultFloat.ProtoReflect.Descriptor instead.
func (*ResultFloat) GetKey ¶
func (x *ResultFloat) GetKey() string
func (*ResultFloat) GetValue ¶
func (x *ResultFloat) GetValue() float64
func (*ResultFloat) ProtoMessage ¶
func (*ResultFloat) ProtoMessage()
func (*ResultFloat) ProtoReflect ¶
func (x *ResultFloat) ProtoReflect() protoreflect.Message
func (*ResultFloat) Reset ¶
func (x *ResultFloat) Reset()
func (*ResultFloat) String ¶
func (x *ResultFloat) String() string
type ResultInt64 ¶
type ResultInt64 struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value int64 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*ResultInt64) Descriptor
deprecated
func (*ResultInt64) Descriptor() ([]byte, []int)
Deprecated: Use ResultInt64.ProtoReflect.Descriptor instead.
func (*ResultInt64) GetKey ¶
func (x *ResultInt64) GetKey() string
func (*ResultInt64) GetValue ¶
func (x *ResultInt64) GetValue() int64
func (*ResultInt64) ProtoMessage ¶
func (*ResultInt64) ProtoMessage()
func (*ResultInt64) ProtoReflect ¶
func (x *ResultInt64) ProtoReflect() protoreflect.Message
func (*ResultInt64) Reset ¶
func (x *ResultInt64) Reset()
func (*ResultInt64) String ¶
func (x *ResultInt64) String() string
type ResultResponse ¶
type ResultResponse struct { Status ResultStatus `protobuf:"varint,1,opt,name=status,proto3,enum=proto.ResultStatus" json:"status,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*ResultResponse) Descriptor
deprecated
func (*ResultResponse) Descriptor() ([]byte, []int)
Deprecated: Use ResultResponse.ProtoReflect.Descriptor instead.
func (*ResultResponse) GetMessage ¶
func (x *ResultResponse) GetMessage() string
func (*ResultResponse) GetStatus ¶
func (x *ResultResponse) GetStatus() ResultStatus
func (*ResultResponse) ProtoMessage ¶
func (*ResultResponse) ProtoMessage()
func (*ResultResponse) ProtoReflect ¶
func (x *ResultResponse) ProtoReflect() protoreflect.Message
func (*ResultResponse) Reset ¶
func (x *ResultResponse) Reset()
func (*ResultResponse) String ¶
func (x *ResultResponse) String() string
type ResultRow ¶
type ResultRow struct { // Types that are assignable to Result: // *ResultRow_Floatresult // *ResultRow_Intresult Result isResultRow_Result `protobuf_oneof:"result"` // contains filtered or unexported fields }
func (*ResultRow) Descriptor
deprecated
func (*ResultRow) GetFloatresult ¶
func (x *ResultRow) GetFloatresult() *ResultFloat
func (*ResultRow) GetIntresult ¶
func (x *ResultRow) GetIntresult() *ResultInt64
func (*ResultRow) ProtoMessage ¶
func (*ResultRow) ProtoMessage()
func (*ResultRow) ProtoReflect ¶
func (x *ResultRow) ProtoReflect() protoreflect.Message
type ResultRow_Floatresult ¶
type ResultRow_Floatresult struct {
Floatresult *ResultFloat `protobuf:"bytes,1,opt,name=floatresult,proto3,oneof"`
}
type ResultRow_Intresult ¶
type ResultRow_Intresult struct {
Intresult *ResultInt64 `protobuf:"bytes,2,opt,name=intresult,proto3,oneof"`
}
type ResultServiceClient ¶
type ResultServiceClient interface {
SendResults(ctx context.Context, in *Results, opts ...grpc.CallOption) (*ResultResponse, error)
}
ResultServiceClient is the client API for ResultService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewResultServiceClient ¶
func NewResultServiceClient(cc grpc.ClientConnInterface) ResultServiceClient
type ResultServiceServer ¶
type ResultServiceServer interface {
SendResults(context.Context, *Results) (*ResultResponse, error)
}
ResultServiceServer is the server API for ResultService service.
type ResultStatus ¶
type ResultStatus int32
const ( ResultStatus_RESULT_OK ResultStatus = 0 ResultStatus_RESULT_FAILED ResultStatus = 1 )
func (ResultStatus) Descriptor ¶
func (ResultStatus) Descriptor() protoreflect.EnumDescriptor
func (ResultStatus) Enum ¶
func (x ResultStatus) Enum() *ResultStatus
func (ResultStatus) EnumDescriptor
deprecated
func (ResultStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use ResultStatus.Descriptor instead.
func (ResultStatus) Number ¶
func (x ResultStatus) Number() protoreflect.EnumNumber
func (ResultStatus) String ¶
func (x ResultStatus) String() string
func (ResultStatus) Type ¶
func (ResultStatus) Type() protoreflect.EnumType
type Results ¶
type Results struct { Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` Host string `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"` Probe string `protobuf:"bytes,3,opt,name=probe,proto3" json:"probe,omitempty"` Time uint64 `protobuf:"varint,4,opt,name=time,proto3" json:"time,omitempty"` Resultrows []*ResultRow `protobuf:"bytes,5,rep,name=resultrows,proto3" json:"resultrows,omitempty"` // contains filtered or unexported fields }
func (*Results) Descriptor
deprecated
func (*Results) GetResultrows ¶
func (*Results) ProtoMessage ¶
func (*Results) ProtoMessage()
func (*Results) ProtoReflect ¶
func (x *Results) ProtoReflect() protoreflect.Message
type UnimplementedResultServiceServer ¶
type UnimplementedResultServiceServer struct { }
UnimplementedResultServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedResultServiceServer) SendResults ¶
func (*UnimplementedResultServiceServer) SendResults(context.Context, *Results) (*ResultResponse, error)
Click to show internal directories.
Click to hide internal directories.