proto

package
v0.0.0-...-5aa43d2 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use ResultRow.ProtoReflect.Descriptor instead.

func (*ResultRow) GetFloatresult

func (x *ResultRow) GetFloatresult() *ResultFloat

func (*ResultRow) GetIntresult

func (x *ResultRow) GetIntresult() *ResultInt64

func (*ResultRow) GetResult

func (m *ResultRow) GetResult() isResultRow_Result

func (*ResultRow) ProtoMessage

func (*ResultRow) ProtoMessage()

func (*ResultRow) ProtoReflect

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

func (*ResultRow) Reset

func (x *ResultRow) Reset()

func (*ResultRow) String

func (x *ResultRow) String() string

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.

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) Enum

func (x ResultStatus) Enum() *ResultStatus

func (ResultStatus) EnumDescriptor deprecated

func (ResultStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use ResultStatus.Descriptor instead.

func (ResultStatus) Number

func (ResultStatus) String

func (x ResultStatus) String() string

func (ResultStatus) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use Results.ProtoReflect.Descriptor instead.

func (*Results) GetHost

func (x *Results) GetHost() string

func (*Results) GetProbe

func (x *Results) GetProbe() string

func (*Results) GetResultrows

func (x *Results) GetResultrows() []*ResultRow

func (*Results) GetSource

func (x *Results) GetSource() string

func (*Results) GetTime

func (x *Results) GetTime() uint64

func (*Results) ProtoMessage

func (*Results) ProtoMessage()

func (*Results) ProtoReflect

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

func (*Results) Reset

func (x *Results) Reset()

func (*Results) String

func (x *Results) String() string

type UnimplementedResultServiceServer

type UnimplementedResultServiceServer struct {
}

UnimplementedResultServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedResultServiceServer) SendResults

Jump to

Keyboard shortcuts

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