grpc_testing
v1.14.0
github.com/bglmmz/grpc/stress/grpc_testing
Documentation
pkg.go.dev ↗Functions
RegisterMetricsServiceServer
func RegisterMetricsServiceServer(s *grpc.Server, srv MetricsServiceServer)
Types
EmptyMessage
type EmptyMessage struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
EmptyMessage.Descriptor
func (*EmptyMessage) Descriptor() ([]byte, []int)
EmptyMessage.ProtoMessage
func (*EmptyMessage) ProtoMessage()
EmptyMessage.Reset
func (m *EmptyMessage) Reset()
EmptyMessage.String
func (m *EmptyMessage) String() string
EmptyMessage.XXX_DiscardUnknown
func (m *EmptyMessage) XXX_DiscardUnknown()
EmptyMessage.XXX_Marshal
func (m *EmptyMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
EmptyMessage.XXX_Merge
func (dst *EmptyMessage) XXX_Merge(src proto.Message)
EmptyMessage.XXX_Size
func (m *EmptyMessage) XXX_Size() int
EmptyMessage.XXX_Unmarshal
func (m *EmptyMessage) XXX_Unmarshal(b []byte) error
GaugeRequest
type GaugeRequest struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
Request message containing the gauge name
GaugeRequest.Descriptor
func (*GaugeRequest) Descriptor() ([]byte, []int)
GaugeRequest.GetName
func (m *GaugeRequest) GetName() string
GaugeRequest.ProtoMessage
func (*GaugeRequest) ProtoMessage()
GaugeRequest.Reset
func (m *GaugeRequest) Reset()
GaugeRequest.String
func (m *GaugeRequest) String() string
GaugeRequest.XXX_DiscardUnknown
func (m *GaugeRequest) XXX_DiscardUnknown()
GaugeRequest.XXX_Marshal
func (m *GaugeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
GaugeRequest.XXX_Merge
func (dst *GaugeRequest) XXX_Merge(src proto.Message)
GaugeRequest.XXX_Size
func (m *GaugeRequest) XXX_Size() int
GaugeRequest.XXX_Unmarshal
func (m *GaugeRequest) XXX_Unmarshal(b []byte) error
GaugeResponse
type GaugeResponse struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Types that are valid to be assigned to Value:
// *GaugeResponse_LongValue
// *GaugeResponse_DoubleValue
// *GaugeResponse_StringValue
Value isGaugeResponse_Value `protobuf_oneof:"value"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
Response message containing the gauge name and value
GaugeResponse.Descriptor
func (*GaugeResponse) Descriptor() ([]byte, []int)
GaugeResponse.GetDoubleValue
func (m *GaugeResponse) GetDoubleValue() float64
GaugeResponse.GetLongValue
func (m *GaugeResponse) GetLongValue() int64
GaugeResponse.GetName
func (m *GaugeResponse) GetName() string
GaugeResponse.GetStringValue
func (m *GaugeResponse) GetStringValue() string
GaugeResponse.GetValue
func (m *GaugeResponse) GetValue() isGaugeResponse_Value
GaugeResponse.ProtoMessage
func (*GaugeResponse) ProtoMessage()
GaugeResponse.Reset
func (m *GaugeResponse) Reset()
GaugeResponse.String
func (m *GaugeResponse) String() string
GaugeResponse.XXX_DiscardUnknown
func (m *GaugeResponse) XXX_DiscardUnknown()
GaugeResponse.XXX_Marshal
func (m *GaugeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
GaugeResponse.XXX_Merge
func (dst *GaugeResponse) XXX_Merge(src proto.Message)
GaugeResponse.XXX_OneofFuncs
func (*GaugeResponse) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
GaugeResponse.XXX_Size
func (m *GaugeResponse) XXX_Size() int
GaugeResponse.XXX_Unmarshal
func (m *GaugeResponse) XXX_Unmarshal(b []byte) error
GaugeResponse_DoubleValue
type GaugeResponse_DoubleValue struct {
DoubleValue float64 `protobuf:"fixed64,3,opt,name=double_value,json=doubleValue,proto3,oneof"`
}
GaugeResponse_LongValue
type GaugeResponse_LongValue struct {
LongValue int64 `protobuf:"varint,2,opt,name=long_value,json=longValue,proto3,oneof"`
}
GaugeResponse_StringValue
type GaugeResponse_StringValue struct {
StringValue string `protobuf:"bytes,4,opt,name=string_value,json=stringValue,proto3,oneof"`
}
MetricsServiceClient
type MetricsServiceClient interface {
// Returns the values of all the gauges that are currently being maintained by
// the service
GetAllGauges(ctx context.Context, in *EmptyMessage, opts ...grpc.CallOption) (MetricsService_GetAllGaugesClient, error)
// Returns the value of one gauge
GetGauge(ctx context.Context, in *GaugeRequest, opts ...grpc.CallOption) (*GaugeResponse, error)
}
MetricsServiceClient is the client API for MetricsService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
NewMetricsServiceClient
func NewMetricsServiceClient(cc *grpc.ClientConn) MetricsServiceClient
MetricsServiceServer
type MetricsServiceServer interface {
// Returns the values of all the gauges that are currently being maintained by
// the service
GetAllGauges(*EmptyMessage, MetricsService_GetAllGaugesServer) error
// Returns the value of one gauge
GetGauge(context.Context, *GaugeRequest) (*GaugeResponse, error)
}
MetricsServiceServer is the server API for MetricsService service.
MetricsService_GetAllGaugesClient
type MetricsService_GetAllGaugesClient interface {
Recv() (*GaugeResponse, error)
grpc.ClientStream
}
MetricsService_GetAllGaugesServer
type MetricsService_GetAllGaugesServer interface {
Send(*GaugeResponse) error
grpc.ServerStream
}