grpc_testing
v1.10.0
github.com/teo/grpc-go/benchmark/grpc_testing
Documentation
pkg.go.dev ↗Package grpc_testing is a generated protocol buffer package.
It is generated from these files:
control.proto messages.proto payloads.proto services.proto stats.proto
It has these top-level messages:
PoissonParams UniformParams DeterministicParams ParetoParams ClosedLoopParams LoadParams SecurityParams ClientConfig ClientStatus Mark ClientArgs ServerConfig ServerArgs ServerStatus CoreRequest CoreResponse Void Scenario Scenarios Payload EchoStatus SimpleRequest SimpleResponse StreamingInputCallRequest StreamingInputCallResponse ResponseParameters StreamingOutputCallRequest StreamingOutputCallResponse ReconnectParams ReconnectInfo ByteBufferParams SimpleProtoParams ComplexProtoParams PayloadConfig ServerStats HistogramParams HistogramData ClientStats
Variables
ClientType_name
var ClientType_name = map[int32]string{
0: "SYNC_CLIENT",
1: "ASYNC_CLIENT",
}
ClientType_value
var ClientType_value = map[string]int32{
"SYNC_CLIENT": 0,
"ASYNC_CLIENT": 1,
}
CompressionType_name
var CompressionType_name = map[int32]string{
0: "NONE",
1: "GZIP",
2: "DEFLATE",
}
CompressionType_value
var CompressionType_value = map[string]int32{
"NONE": 0,
"GZIP": 1,
"DEFLATE": 2,
}
PayloadType_name
var PayloadType_name = map[int32]string{
0: "COMPRESSABLE",
1: "UNCOMPRESSABLE",
2: "RANDOM",
}
PayloadType_value
var PayloadType_value = map[string]int32{
"COMPRESSABLE": 0,
"UNCOMPRESSABLE": 1,
"RANDOM": 2,
}
RpcType_name
var RpcType_name = map[int32]string{
0: "UNARY",
1: "STREAMING",
}
RpcType_value
var RpcType_value = map[string]int32{
"UNARY": 0,
"STREAMING": 1,
}
ServerType_name
var ServerType_name = map[int32]string{
0: "SYNC_SERVER",
1: "ASYNC_SERVER",
2: "ASYNC_GENERIC_SERVER",
}
ServerType_value
var ServerType_value = map[string]int32{
"SYNC_SERVER": 0,
"ASYNC_SERVER": 1,
"ASYNC_GENERIC_SERVER": 2,
}
Functions
RegisterBenchmarkServiceServer
func RegisterBenchmarkServiceServer(s *grpc.Server, srv BenchmarkServiceServer)
RegisterWorkerServiceServer
func RegisterWorkerServiceServer(s *grpc.Server, srv WorkerServiceServer)
Types
BenchmarkServiceClient
type BenchmarkServiceClient interface {
// One request followed by one response.
// The server returns the client payload as-is.
UnaryCall(ctx context.Context, in *SimpleRequest, opts ...grpc.CallOption) (*SimpleResponse, error)
// One request followed by one response.
// The server returns the client payload as-is.
StreamingCall(ctx context.Context, opts ...grpc.CallOption) (BenchmarkService_StreamingCallClient, error)
}
NewBenchmarkServiceClient
func NewBenchmarkServiceClient(cc *grpc.ClientConn) BenchmarkServiceClient
BenchmarkServiceServer
type BenchmarkServiceServer interface {
// One request followed by one response.
// The server returns the client payload as-is.
UnaryCall(context.Context, *SimpleRequest) (*SimpleResponse, error)
// One request followed by one response.
// The server returns the client payload as-is.
StreamingCall(BenchmarkService_StreamingCallServer) error
}
BenchmarkService_StreamingCallClient
type BenchmarkService_StreamingCallClient interface {
Send(*SimpleRequest) error
Recv() (*SimpleResponse, error)
grpc.ClientStream
}
BenchmarkService_StreamingCallServer
type BenchmarkService_StreamingCallServer interface {
Send(*SimpleResponse) error
Recv() (*SimpleRequest, error)
grpc.ServerStream
}
ByteBufferParams
type ByteBufferParams struct {
ReqSize int32 `protobuf:"varint,1,opt,name=req_size,json=reqSize" json:"req_size,omitempty"`
RespSize int32 `protobuf:"varint,2,opt,name=resp_size,json=respSize" json:"resp_size,omitempty"`
}
ByteBufferParams.Descriptor
func (*ByteBufferParams) Descriptor() ([]byte, []int)
ByteBufferParams.GetReqSize
func (m *ByteBufferParams) GetReqSize() int32
ByteBufferParams.GetRespSize
func (m *ByteBufferParams) GetRespSize() int32
ByteBufferParams.ProtoMessage
func (*ByteBufferParams) ProtoMessage()
ByteBufferParams.Reset
func (m *ByteBufferParams) Reset()
ByteBufferParams.String
func (m *ByteBufferParams) String() string
ClientArgs
type ClientArgs struct {
// Types that are valid to be assigned to Argtype:
// *ClientArgs_Setup
// *ClientArgs_Mark
Argtype isClientArgs_Argtype `protobuf_oneof:"argtype"`
}
ClientArgs.Descriptor
func (*ClientArgs) Descriptor() ([]byte, []int)
ClientArgs.GetArgtype
func (m *ClientArgs) GetArgtype() isClientArgs_Argtype
ClientArgs.GetMark
func (m *ClientArgs) GetMark() *Mark
ClientArgs.GetSetup
func (m *ClientArgs) GetSetup() *ClientConfig
ClientArgs.ProtoMessage
func (*ClientArgs) ProtoMessage()
ClientArgs.Reset
func (m *ClientArgs) Reset()
ClientArgs.String
func (m *ClientArgs) String() string
ClientArgs.XXX_OneofFuncs
func (*ClientArgs) 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.
ClientArgs_Mark
type ClientArgs_Mark struct {
Mark *Mark `protobuf:"bytes,2,opt,name=mark,oneof"`
}
ClientArgs_Setup
type ClientArgs_Setup struct {
Setup *ClientConfig `protobuf:"bytes,1,opt,name=setup,oneof"`
}
ClientConfig
type ClientConfig struct {
// List of targets to connect to. At least one target needs to be specified.
ServerTargets []string `protobuf:"bytes,1,rep,name=server_targets,json=serverTargets" json:"server_targets,omitempty"`
ClientType ClientType `protobuf:"varint,2,opt,name=client_type,json=clientType,enum=grpc.testing.ClientType" json:"client_type,omitempty"`
SecurityParams *SecurityParams `protobuf:"bytes,3,opt,name=security_params,json=securityParams" json:"security_params,omitempty"`
// How many concurrent RPCs to start for each channel.
// For synchronous client, use a separate thread for each outstanding RPC.
OutstandingRpcsPerChannel int32 `protobuf:"varint,4,opt,name=outstanding_rpcs_per_channel,json=outstandingRpcsPerChannel" json:"outstanding_rpcs_per_channel,omitempty"`
// Number of independent client channels to create.
// i-th channel will connect to server_target[i % server_targets.size()]
ClientChannels int32 `protobuf:"varint,5,opt,name=client_channels,json=clientChannels" json:"client_channels,omitempty"`
// Only for async client. Number of threads to use to start/manage RPCs.
AsyncClientThreads int32 `protobuf:"varint,7,opt,name=async_client_threads,json=asyncClientThreads" json:"async_client_threads,omitempty"`
RpcType RpcType `protobuf:"varint,8,opt,name=rpc_type,json=rpcType,enum=grpc.testing.RpcType" json:"rpc_type,omitempty"`
// The requested load for the entire client (aggregated over all the threads).
LoadParams *LoadParams `protobuf:"bytes,10,opt,name=load_params,json=loadParams" json:"load_params,omitempty"`
PayloadConfig *PayloadConfig `protobuf:"bytes,11,opt,name=payload_config,json=payloadConfig" json:"payload_config,omitempty"`
HistogramParams *HistogramParams `protobuf:"bytes,12,opt,name=histogram_params,json=histogramParams" json:"histogram_params,omitempty"`
// Specify the cores we should run the client on, if desired
CoreList []int32 `protobuf:"varint,13,rep,packed,name=core_list,json=coreList" json:"core_list,omitempty"`
CoreLimit int32 `protobuf:"varint,14,opt,name=core_limit,json=coreLimit" json:"core_limit,omitempty"`
}
ClientConfig.Descriptor
func (*ClientConfig) Descriptor() ([]byte, []int)
ClientConfig.GetAsyncClientThreads
func (m *ClientConfig) GetAsyncClientThreads() int32
ClientConfig.GetClientChannels
func (m *ClientConfig) GetClientChannels() int32
ClientConfig.GetClientType
func (m *ClientConfig) GetClientType() ClientType
Showing entries 1–40 of 354.
Use Contents to jump to any section or symbol.