Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GrpcServerSimulator ¶
type GrpcServerSimulator struct { Opts *Opts Randomizer *rand.Rand // contains filtered or unexported fields }
func New ¶
func New( log *logger.Logger, optFuncs ...OptFunc, ) *GrpcServerSimulator
Create an gRPC server simulator instance
func (*GrpcServerSimulator) Simulate ¶
func (g *GrpcServerSimulator) Simulate( users []string, )
Starts simulating gRPC server
type OptFunc ¶
type OptFunc func(*Opts)
func WithRequestInterval ¶
Configure HTTP server request interval
func WithServerEndpoint ¶
Configure HTTP server endpoint
func WithServiceName ¶
Configure service name of simulator
Click to show internal directories.
Click to hide internal directories.