Package loadtest implements load testing for pubsub, following the interface defined in https://github.com/GoogleCloudPlatform/pubsub/tree/master/load-test-framework/ .
This package is experimental.
PubServer
type PubServer struct {
ID string
// contains filtered or unexported fields
}
PubServer is a dummy Pub/Sub server for load testing.
func (*PubServer) Execute
func (l *PubServer) Execute(ctx context.Context, _ *pb.ExecuteRequest) (*pb.ExecuteResponse, error)
Execute executes a request.
func (*PubServer) Start
func (l *PubServer) Start(ctx context.Context, req *pb.StartRequest) (*pb.StartResponse, error)
Start starts the server.
SubServer
type SubServer struct {
// contains filtered or unexported fields
}
SubServer is a dummy Pub/Sub server for load testing.
func (*SubServer) Execute
func (s *SubServer) Execute(ctx context.Context, _ *pb.ExecuteRequest) (*pb.ExecuteResponse, error)
Execute executes the request.
func (*SubServer) Start
func (s *SubServer) Start(ctx context.Context, req *pb.StartRequest) (*pb.StartResponse, error)
Start starts the server.