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
Click to show internal directories.
Click to hide internal directories.