Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoBalanceAvailable = errors.New("no balance available")
Functions ¶
This section is empty.
Types ¶
type BalanceEventDedupHash ¶
type BalanceEventDedupHash struct {
// contains filtered or unexported fields
}
func NewBalanceEventDedupHash ¶
func NewBalanceEventDedupHash(snapshot snapshot.SnapshotEvent, ruleID string, threshold notification.BalanceThreshold) (*BalanceEventDedupHash, error)
func (BalanceEventDedupHash) V1 ¶
func (d BalanceEventDedupHash) V1() string
func (BalanceEventDedupHash) V2 ¶
func (d BalanceEventDedupHash) V2() string
type Consumer ¶
type Consumer struct {
// contains filtered or unexported fields
}
type EntitlementSnapshotHandler ¶
type EntitlementSnapshotHandler struct {
Notification notification.Service
Logger *slog.Logger
}
func (*EntitlementSnapshotHandler) Handle ¶
func (b *EntitlementSnapshotHandler) Handle(ctx context.Context, event snapshot.SnapshotEvent) error
type EntitlementSnapshotHandlerState ¶
type EntitlementSnapshotHandlerState struct {
TotalGrants float64 `json:"totalGrants"`
}
type InvoiceEventHandler ¶
type InvoiceEventHandler struct {
Notification notification.Service
Logger *slog.Logger
}
func (*InvoiceEventHandler) Handle ¶
func (h *InvoiceEventHandler) Handle(ctx context.Context, event billing.EventInvoice, eventType notification.EventType) error
type Options ¶
type ThresholdKind ¶
type ThresholdKind string
const ( ThresholdKindUsageThreshold ThresholdKind = "usage" ThresholdKindBalanceThreshold ThresholdKind = "balance" )
Click to show internal directories.
Click to hide internal directories.