Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChanListener ¶
type ChanListener struct {
// contains filtered or unexported fields
}
ChanListener listens for audit logs and processes them blocking one event at a time
func NewChanListener ¶
func NewChanListener(inputChan <-chan audit.Log, processor *Service) *ChanListener
type ChanPublisher ¶
type ChanPublisher struct {
// contains filtered or unexported fields
}
ChanPublisher is a blocking audit event publisher
func NewChanPublisher ¶
func NewChanPublisher(target chan<- audit.Log) *ChanPublisher
type CheckoutService ¶
type CreditService ¶ added in v0.17.0
type CustomerService ¶
type OrganizationService ¶
type OrganizationService interface {
GetRaw(ctx context.Context, id string) (organization.Organization, error)
}
type PlanService ¶
type ProviderWebhookEvent ¶ added in v0.13.0
type Service ¶ added in v0.13.0
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶ added in v0.13.0
func NewService(billingConf billing.Config, organizationService OrganizationService, checkoutService CheckoutService, customerService CustomerService, planService PlanService, userService UserService, subsService SubscriptionService, creditService CreditService) *Service
func (*Service) BillingWebhook ¶ added in v0.13.0
func (p *Service) BillingWebhook(ctx context.Context, payload ProviderWebhookEvent) error
type SubscriptionService ¶ added in v0.13.0
Click to show internal directories.
Click to hide internal directories.