cache

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UnavailableOfferings

type UnavailableOfferings struct {
	// contains filtered or unexported fields
}

UnavailableOfferings tracks offerings that are currently unavailable

func NewUnavailableOfferings

func NewUnavailableOfferings() *UnavailableOfferings

NewUnavailableOfferings creates a new UnavailableOfferings cache

func (*UnavailableOfferings) Add

func (u *UnavailableOfferings) Add(offeringID string, expiry time.Time)

Add marks an offering as unavailable

func (*UnavailableOfferings) Cleanup

func (u *UnavailableOfferings) Cleanup()

Cleanup removes expired entries

func (*UnavailableOfferings) IsUnavailable

func (u *UnavailableOfferings) IsUnavailable(offeringID string) bool

IsUnavailable checks if an offering is marked as unavailable

func (*UnavailableOfferings) Remove

func (u *UnavailableOfferings) Remove(offeringID string)

Remove removes an offering from the unavailable list

Jump to

Keyboard shortcuts

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