Package cloud.google.com/go/pubsub/loadtest (v1.24.0)

Stay organized with collections Save and categorize content based on your preferences.

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

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

Execute executes the request.

func (*SubServer) Start

func (s *SubServer) Start(ctx context.Context, req *pb.StartRequest) (*pb.StartResponse, error)

Start starts the server.