Documentation
¶
Overview ¶
Package publicurlusageworker finishes and sends stored public URL usage reports.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store interface {
MarkExpiredIngressUsageRunsIncomplete(context.Context, time.Time) (int, error)
FinalizePublicURLUsageBuckets(context.Context, time.Time, time.Time) (int, error)
ClaimPublicURLUsageDeliveries(context.Context, string, int, time.Time, time.Duration) ([]controlstate.PublicURLUsageDeliveryWork, error)
CompletePublicURLUsageDelivery(context.Context, controlstate.PublicURLUsageDeliveryWork, time.Time) error
RetryPublicURLUsageDelivery(context.Context, controlstate.PublicURLUsageDeliveryWork, time.Time, string, time.Time) error
RejectPublicURLUsageDelivery(context.Context, controlstate.PublicURLUsageDeliveryWork, string, time.Time) error
}
Store is the stored public URL usage state used by a Worker.
type UsageObserver ¶
type UsageObserver interface {
ObserveUsageWork(phase string, outcome observability.UsageWorkOutcome)
AddUsageItems(result string, count int)
ObserveUsageReceiver(outcome observability.UsageReceiverOutcome, elapsed time.Duration)
}
Click to show internal directories.
Click to hide internal directories.