Documentation

Overview

    Package clientv3util contains utility functions derived from clientv3.

    Index

    Examples

    Constants

    This section is empty.

    Variables

    This section is empty.

    Functions

    func KeyExists

    func KeyExists(key string) clientv3.Cmp

      KeyExists returns a comparison operation that evaluates to true iff the given key exists. It does this by checking if the key `Version` is greater than 0. It is a useful guard in transaction delete operations.

      Example (Delete)
      Output:
      
      
      Example (Put)
      Output:
      
      

      func KeyMissing

      func KeyMissing(key string) clientv3.Cmp

        KeyMissing returns a comparison operation that evaluates to true iff the given key does not exist.

        Types

        This section is empty.

        Source Files