Documentation
¶
Overview ¶
Package commonapi provides shared request handling logic used by both the Client API and Primary domain layer, such as Range queries.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Range ¶
func Range(db localdb.Database, ctx context.Context, r *pb.RangeRequest, committedRevision int64) (*pb.RangeResponse, error)
Range executes the shared Range request logic against the local database.
The committedRevision argument is the cluster's current committed revision at the moment the caller dispatched the request; it is placed verbatim in the response Header.Revision. This mirrors etcd, where Header.Revision is always the store's current revision — not the maximum revision among the matched records.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.