cache

package
v0.0.0-...-8ee384e Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddEventSentToCache

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

AddEventSentToCache adds the particular object to cache marking it as sent

func EventKey

func EventKey(event *cloudevents.Event) string

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 IsCloudEventSent

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

IsCloudEventSent checks if the event exists in the cache

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