cache

package
v0.0.0-...-4fc8c9b Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsOrAddCloudEvent

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