Documentation ¶
Index ¶
- func RunWithConfig(cfg *proto.ReplicaConfig)
- type Keyserver
- func (ks *Keyserver) Lookup(ctx context.Context, req *proto.LookupRequest) (*proto.LookupProof, error)
- func (ks *Keyserver) PushRatification(ctx context.Context, r *proto.SignedEpochHead) (*proto.Nothing, error)
- func (ks *Keyserver) Start()
- func (ks *Keyserver) Stop()
- func (ks *Keyserver) Update(ctx context.Context, req *proto.UpdateRequest) (*proto.LookupProof, error)
- func (ks *Keyserver) VerifierStream(rq *proto.VerifierStreamRequest, ...) error
- type Proposer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunWithConfig ¶
func RunWithConfig(cfg *proto.ReplicaConfig)
Types ¶
type Keyserver ¶
type Keyserver struct {
// contains filtered or unexported fields
}
Keyserver manages a single end-to-end keyserver realm.
func Open ¶
func Open(cfg *proto.ReplicaConfig, db kv.DB, log replication.LogReplicator, initialAuthorizationPolicy *proto.AuthorizationPolicy, clk clock.Clock, getKey func(string) (crypto.PrivateKey, error), LookupTXT func(string) ([]string, error)) (ks *Keyserver, err error)
Open initializes a new keyserver based on cfg, reads the persistent state and binds to the specified ports. It does not handle input: requests will block.
func (*Keyserver) Lookup ¶
func (ks *Keyserver) Lookup(ctx context.Context, req *proto.LookupRequest) (*proto.LookupProof, error)
Lookup implements proto.E2EKSLookupServer
func (*Keyserver) PushRatification ¶
func (ks *Keyserver) PushRatification(ctx context.Context, r *proto.SignedEpochHead) (*proto.Nothing, error)
PushRatification implements the interfaceE2EKSVerification interface from proto/verifier.proto
func (*Keyserver) Start ¶
func (ks *Keyserver) Start()
Start makes the keyserver start handling requests (forks goroutines).
func (*Keyserver) Stop ¶
func (ks *Keyserver) Stop()
Stop cleanly shuts down the keyserver and then returns.
func (*Keyserver) Update ¶
func (ks *Keyserver) Update(ctx context.Context, req *proto.UpdateRequest) (*proto.LookupProof, error)
Update implements proto.E2EKS.UpdateServer
func (*Keyserver) VerifierStream ¶
func (ks *Keyserver) VerifierStream(rq *proto.VerifierStreamRequest, stream proto.E2EKSVerification_VerifierStreamServer) error
VerifierStream implements the interfaceE2EKSVerification interface from proto/verifier.proto
type Proposer ¶
type Proposer struct {
// contains filtered or unexported fields
}
func StartProposer ¶
func StartProposer(log replication.LogReplicator, clk clock.Clock, initialDelay time.Duration, proposal replication.LogEntry) *Proposer
Directories ¶
Path | Synopsis |
---|---|
Package kv contains a generic interface for key-value databases with support for batch writes.
|
Package kv contains a generic interface for key-value databases with support for batch writes. |
leveldbkv
Package leveldbkv implements the kv interface using leveldb
|
Package leveldbkv implements the kv interface using leveldb |
tracekv
Package tracekv implements a tracing wrapper for kv.DB
|
Package tracekv implements a tracing wrapper for kv.DB |
raftlog/proto
Package proto is a generated protocol buffer package.
|
Package proto is a generated protocol buffer package. |
Click to show internal directories.
Click to hide internal directories.