keys

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CanonicalKeyHandler

type CanonicalKeyHandler struct{}

CanonicalKeyHandler is a key handler which makes use of the canonical key for relations for dispatching.

func (*CanonicalKeyHandler) ComputeCheckKey

func (c *CanonicalKeyHandler) ComputeCheckKey(ctx context.Context, req *v1.DispatchCheckRequest, nsm namespace.Manager) (string, error)

type DirectKeyHandler

type DirectKeyHandler struct{}

DirectKeyHandler is a key handler that uses the relation name itself as the key.

func (*DirectKeyHandler) ComputeCheckKey

func (d *DirectKeyHandler) ComputeCheckKey(ctx context.Context, req *v1.DispatchCheckRequest, nsm namespace.Manager) (string, error)

type Handler

type Handler interface {
	// ComputeCheckKey computes the key for a Check operation.
	ComputeCheckKey(ctx context.Context, req *v1.DispatchCheckRequest, nsm namespace.Manager) (string, error)
}

Handler is an interface defining how keys are computed for dispatching and caching.

Jump to

Keyboard shortcuts

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