Documentation ¶
Index ¶
- Constants
- func ParseEventPayload(eventName string, payload []byte) (any, error)
- func WithDefaultHandler(handler DefaultHandler) ginTonicOption
- func WithLicenseKeyCreatedHandler(handler LicenseKeyCreatedHandler) ginTonicOption
- func WithLicenseKeyUpdatedHandler(handler LicenseKeyUpdatedHandler) ginTonicOption
- func WithOrderCreatedHandler(handler OrderCreatedHandler) ginTonicOption
- func WithOrderRefundedHandler(handler OrderRefundedHandler) ginTonicOption
- func WithSubscriptionCancelledHandler(handler SubscriptionCancelledHandler) ginTonicOption
- func WithSubscriptionCreatedHandler(handler SubscriptionCreatedHandler) ginTonicOption
- func WithSubscriptionExpiredHandler(handler SubscriptionExpiredHandler) ginTonicOption
- func WithSubscriptionPausedHandler(handler SubscriptionPausedHandler) ginTonicOption
- func WithSubscriptionPaymentFailedHandler(handler SubscriptionPaymentFailedHandler) ginTonicOption
- func WithSubscriptionPaymentRecoveredHandler(handler SubscriptionPaymentRecoveredHandler) ginTonicOption
- func WithSubscriptionPaymentSuccessHandler(handler SubscriptionPaymentSuccessHandler) ginTonicOption
- func WithSubscriptionResumedHandler(handler SubscriptionResumedHandler) ginTonicOption
- func WithSubscriptionUnpausedHandler(handler SubscriptionUnpausedHandler) ginTonicOption
- func WithSubscriptionUpdatedHandler(handler SubscriptionUpdatedHandler) ginTonicOption
- type DefaultHandler
- type GinTonic
- type LicenseKeyCreatedHandler
- type LicenseKeyUpdatedHandler
- type OrderCreatedHandler
- type OrderRefundedHandler
- type SubscriptionCancelledHandler
- type SubscriptionCreatedHandler
- type SubscriptionExpiredHandler
- type SubscriptionPausedHandler
- type SubscriptionPaymentFailedHandler
- type SubscriptionPaymentRecoveredHandler
- type SubscriptionPaymentSuccessHandler
- type SubscriptionResumedHandler
- type SubscriptionUnpausedHandler
- type SubscriptionUpdatedHandler
Constants ¶
View Source
const ( Event_OrderCreated string = "order_created" Event_OrderRefunded string = "order_refunded" Event_SubscriptionCreated string = "subscription_created" Event_SubscriptionUpdated string = "subscription_updated" Event_SubscriptionCancelled string = "subscription_cancelled" Event_SubscriptionResumed string = "subscription_resumed" Event_SubscriptionExpired string = "subscription_expired" Event_SubscriptionPaused string = "subscription_paused" Event_SubscriptionUnpaused string = "subscription_unpaused" Event_SubscriptionPaymentSuccess string = "subscription_payment_success" Event_SubscriptionPaymentFailed string = "subscription_payment_failed" Event_SubscriptionPaymentRecovered string = "subscription_payment_recovered" Event_LicenseKeyCreated string = "license_key_created" Event_LicenseKeyUpdated string = "license_key_updated" )
Variables ¶
This section is empty.
Functions ¶
func WithDefaultHandler ¶
func WithDefaultHandler(handler DefaultHandler) ginTonicOption
func WithLicenseKeyCreatedHandler ¶
func WithLicenseKeyCreatedHandler(handler LicenseKeyCreatedHandler) ginTonicOption
func WithLicenseKeyUpdatedHandler ¶
func WithLicenseKeyUpdatedHandler(handler LicenseKeyUpdatedHandler) ginTonicOption
func WithOrderCreatedHandler ¶
func WithOrderCreatedHandler(handler OrderCreatedHandler) ginTonicOption
func WithOrderRefundedHandler ¶
func WithOrderRefundedHandler(handler OrderRefundedHandler) ginTonicOption
func WithSubscriptionCancelledHandler ¶
func WithSubscriptionCancelledHandler(handler SubscriptionCancelledHandler) ginTonicOption
func WithSubscriptionCreatedHandler ¶
func WithSubscriptionCreatedHandler(handler SubscriptionCreatedHandler) ginTonicOption
func WithSubscriptionExpiredHandler ¶
func WithSubscriptionExpiredHandler(handler SubscriptionExpiredHandler) ginTonicOption
func WithSubscriptionPausedHandler ¶
func WithSubscriptionPausedHandler(handler SubscriptionPausedHandler) ginTonicOption
func WithSubscriptionPaymentFailedHandler ¶
func WithSubscriptionPaymentFailedHandler(handler SubscriptionPaymentFailedHandler) ginTonicOption
func WithSubscriptionPaymentRecoveredHandler ¶
func WithSubscriptionPaymentRecoveredHandler(handler SubscriptionPaymentRecoveredHandler) ginTonicOption
func WithSubscriptionPaymentSuccessHandler ¶
func WithSubscriptionPaymentSuccessHandler(handler SubscriptionPaymentSuccessHandler) ginTonicOption
func WithSubscriptionResumedHandler ¶
func WithSubscriptionResumedHandler(handler SubscriptionResumedHandler) ginTonicOption
func WithSubscriptionUnpausedHandler ¶
func WithSubscriptionUnpausedHandler(handler SubscriptionUnpausedHandler) ginTonicOption
func WithSubscriptionUpdatedHandler ¶
func WithSubscriptionUpdatedHandler(handler SubscriptionUpdatedHandler) ginTonicOption
Types ¶
type DefaultHandler ¶
type GinTonic ¶
type GinTonic struct {
// contains filtered or unexported fields
}
func (*GinTonic) LemonSqueezyWebhook ¶
type OrderCreatedHandler ¶
type OrderRefundedHandler ¶
Click to show internal directories.
Click to hide internal directories.