commonapi

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL