Documentation
¶
Overview ¶
Package gumroad provides license checking using gumroad.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GumroadResponse ¶
type GumroadResponse struct { Success bool `json:"success"` Uses int `json:"uses"` Purchase Purchase `json:"purchase"` Message string `json:"message"` }
GumroadResponse is an API response.
type Product ¶ added in v0.2.0
Product represents a product in Gumroad on which license keys can be verified.
func NewProduct ¶ added in v0.2.0
NewProduct returns a new GumroadProduct with reasonable defaults.
type Purchase ¶
type Purchase struct { Email string `json:"email"` Refunded bool `json:"refunded"` SaleTimestamp time.Time `json:"sale_timestamp"` SubscriptionCancelledAt time.Time `json:"subscription_cancelled_at"` SubscriptionFailedAt time.Time `json:"subscription_failed_at"` SubscriptionID string `json:"subscription_id"` }
Purchase is Purchase from the GumRoad API
Click to show internal directories.
Click to hide internal directories.