Documentation
¶
Overview ¶
Package hammer sends multiple requests to Key Transparency at the same time.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallOptions ¶
type CallOptions func(userID string) []grpc.CallOption
CallOptions returns PerRPCCredentials for the requested user.
type Config ¶
type Config struct { TestTypes map[string]bool WriteQPS int WriteCount int BatchWriteQPS int BatchWriteCount int BatchWriteSize int ReadQPS int ReadCount int ReadPageSize int HistoryQPS int HistoryCount int HistoryPageSize int Duration time.Duration }
Config tells the hammer what operations to do and how fast to go.
type DialFunc ¶
type DialFunc func(ctx context.Context) (pb.KeyTransparencyClient, error)
DialFunc returns a connected grpc client for Key Transparency.
type Hammer ¶
type Hammer struct {
// contains filtered or unexported fields
}
Hammer represents a single run of the hammer.
type ReqHandler ¶
ReqHandler executes a request.
Click to show internal directories.
Click to hide internal directories.