Provides idempotency key generation and handling for Milvus operations.
// Source: https://github.com/milvus-io/milvus | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works // Provided via justclaw.it.com; keep this notice with the code. package message import ( "crypto/sha256" "encoding/hex" "strconv" "strings" "github.com/milvus-io/milvus-proto/go-api/v3/schemapb" "github.com/milvus-io/milvus/pkg/v3/proto/messagespb" "github.com/milvus-io/milvus/pkg/v3/util/merr" ) const idempotencyKeyFingerprintBytes = 16 // IdempotencyScopeDomain names the kind of object a client key deduplicates within. // // The domain is carried explicitly rather than inferred from the scope id, even // though collection ids and database ids come from one rootcoord allocator today // and therefore never collide. Inferring it would make ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key