keys

package
v1.4.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCacheKeyHasher

func NewCacheKeyHasher(xhash *xxhash.Digest) *cacheKeyHasher

func NewTupleKeysHasher

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

Types

type ContextHasher

type ContextHasher struct {
	*structpb.Struct
}

ContextHasher represents a hashable protobuf Struct.

The ContextHasher can be used to generate a stable hash of a protobuf Struct. The fields of the struct are ordered to produce a stable hash, and the values for each struct key are produced using the structValueHasher, which produces a stable hash value for the Struct value.

func (ContextHasher) Append

func (c ContextHasher) Append(h hasher) error

Jump to

Keyboard shortcuts

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