Skip to content

Commit

Permalink
Add ConflictStrategy doc comment
Browse files Browse the repository at this point in the history
Signed-off-by: Chance Murray <[email protected]>
  • Loading branch information
chancesm authored and Chance Murray committed Feb 12, 2024
1 parent 6fb5141 commit 36ae99d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions v1/retryable_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ import (
"time"
)

// ConflictStrategy is an enumeration type that represents the strategy to be used
// when a conflict occurs during a bulk import of relationships in Authzed.
// The strategies are as follows:
// - Fail: The operation will fail if any duplicate relationships are found.
// - Skip: The operation will ignore duplicates and continue with the import.
// - Touch: The operation will retry the import with TOUCH semantics in case of duplicates.
type ConflictStrategy int

const (
Expand Down

0 comments on commit 36ae99d

Please sign in to comment.