keys

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: Apache-2.0 Imports: 6 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) (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) (string, error)

type Handler

type Handler interface {
	// ComputeCheckKey computes the key for a Check operation.
	ComputeCheckKey(ctx context.Context, req *v1.DispatchCheckRequest) (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