Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReplicaConfig ¶
type ReplicaConfig struct { ID ReplicaID PrivateKey *ecdsa.PrivateKey Cert *tls.Certificate // Own certificate CertPool *x509.CertPool // Other replicas's certificates Replicas map[ReplicaID]*ReplicaInfo QuorumSize int BatchSize int }
ReplicaConfig holds information needed by a replica
func NewConfig ¶
func NewConfig(id ReplicaID, privateKey *ecdsa.PrivateKey, cert *tls.Certificate) *ReplicaConfig
NewConfig returns a new ReplicaConfig instance
Click to show internal directories.
Click to hide internal directories.