Documentation
¶
Overview ¶
Package client implements a simple client for testing HotStuff. The client reads data from an input stream and sends the data in commands to a HotStuff replica. The client waits for replies from f+1 replicas before it considers a command to be executed.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a hotstuff client.
func (*Client) Connect ¶ added in v0.3.0
func (c *Client) Connect(replicas []backend.ReplicaInfo) (err error)
Connect connects the client to the replicas.
func (*Client) InitModule ¶ added in v0.5.0
InitModule initializes the client.
type Config ¶ added in v0.3.0
type Config struct {
TLS bool
RootCAs *x509.CertPool
MaxConcurrent uint32
PayloadSize uint32
Input io.ReadCloser
ManagerOptions []gorums.ManagerOption
RateLimit float64 // initial rate limit
RateStep float64 // rate limit step up
RateStepInterval time.Duration // step up interval
Timeout time.Duration
}
Config contains config options for a client.
type LatencyMeasurementEvent ¶ added in v0.3.0
LatencyMeasurementEvent represents a single latency measurement.
Click to show internal directories.
Click to hide internal directories.