Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoBalanceAvailable = errors.New("no balance available")
Functions ¶
This section is empty.
Types ¶
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
Click to show internal directories.
Click to hide internal directories.