func New(cfg clientv3.Config) (*Client, error) { … }
type Client …
var _ …
func (k Client) Get(ctx context.Context, key string, opts GetOptions) (resp GetResponse, err error) { … }
func (k Client) List(ctx context.Context, prefix string, opts ListOptions) (resp ListResponse, err error) { … }
func (k Client) Count(ctx context.Context, prefix string, _ CountOptions) (int64, error) { … }
func (k Client) OptimisticPut(ctx context.Context, key string, value []byte, expectedRevision int64, opts PutOptions) (resp PutResponse, err error) { … }
func (k Client) OptimisticDelete(ctx context.Context, key string, expectedRevision int64, opts DeleteOptions) (resp DeleteResponse, err error) { … }
func kvFromTxnResponse(resp *pb.ResponseOp) *mvccpb.KeyValue { … }