keys

package
v1.5.9 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCacheKeyHasher

func NewCacheKeyHasher(xhash *xxhash.Digest) *cacheKeyHasher

NewCacheKeyHasher returns a hasher for string values.

func NewContextHasher

func NewContextHasher(s *structpb.Struct) *contextHasher

NewContextHasher constructs a contextHasher which can be used to produce a stable hash of a protobuf Struct.

func NewTupleKeysHasher

func NewTupleKeysHasher(tupleKeys ...*openfgav1.TupleKey) *tupleKeysHasher

NewTupleKeysHasher returns a hasher for an array of *openfgav1.TupleKey. It sorts the tuples first to guarantee that two arrays that are identical except for the ordering return the same hash.

Types

This section is empty.

Jump to

Keyboard shortcuts

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