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(replicaConfig *config.ReplicaConfig) (err error)
Connect connects the client to the replicas.
type Config ¶ added in v0.3.0
type Config struct { ID hotstuff.ID 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 }
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.