cache

package
v0.44.5 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: Apache-2.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsOrAddCloudEvent added in v0.40.0

func ContainsOrAddCloudEvent(cacheClient *lru.Cache, event *cloudevents.Event) (bool, error)

ContainsOrAddCloudEvent checks if the event exists in the cache

func EventKey

func EventKey(event *cloudevents.Event) (string, error)

EventKey defines whether an event is considered different from another in future we might want to let specific event types override this

func Get

func Get(ctx context.Context) *lru.Cache

Get extracts the cloudEventClient client from the context.

func ToContext

func ToContext(ctx context.Context, c *lru.Cache) context.Context

ToContext adds the cloud events client to the context

Types

This section is empty.

Jump to

Keyboard shortcuts

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