Documentation
¶
Index ¶
- type Ops
- func (o *Ops) EnsureCouponLoaded(c context.Context, couponID string) error
- func (o *Ops) EnsureCustomerLoaded(ctx context.Context, customerID string) error
- func (o *Ops) EnsurePriceLoaded(c context.Context, priceID string) error
- func (o *Ops) EnsureProductLoaded(c context.Context, productId string) error
- func (o *Ops) HandleCouponDeleted(c context.Context, coupon *stripe.Coupon) error
- func (o *Ops) HandleCouponUpdated(c context.Context, partialCoupon *stripe.Coupon) error
- func (o *Ops) HandleCustomerUpdated(c context.Context, customer *stripe.Customer) error
- func (o *Ops) HandleEvent(c context.Context, e *stripe.Event) error
- func (o *Ops) HandlePriceDeleted(c context.Context, price *stripe.Price) error
- func (o *Ops) HandlePriceUpdated(c context.Context, price *stripe.Price) error
- func (o *Ops) HandleProductDeleted(c context.Context, product *stripe.Product) error
- func (o *Ops) HandleProductUpdated(c context.Context, product *stripe.Product) error
- func (o *Ops) HandleSubscriptionDiscountUpdated(c context.Context, discount *stripe.Discount) error
- func (o *Ops) HandleSubscriptionUpdated(ctx context.Context, subscription *stripe.Subscription) error
- func (o *Ops) InitialLoad(ctx context.Context, purge bool) error
- func (o *Ops) SyncEvents(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ops ¶ added in v0.2.0
type Ops struct {
// contains filtered or unexported fields
}
Ops is a struct that holds the common global state for all operations.
func New ¶ added in v0.2.0
func New(pg *postgres.PostgresStore, cfg cfgmodel.StripeSync, stripeAPIKey string) *Ops
New creates a new Ops struct.
func (*Ops) EnsureCouponLoaded ¶ added in v0.2.0
func (*Ops) EnsureCustomerLoaded ¶ added in v0.2.0
func (*Ops) EnsurePriceLoaded ¶ added in v0.2.0
func (*Ops) EnsureProductLoaded ¶ added in v0.2.0
func (*Ops) HandleCouponDeleted ¶ added in v0.2.0
func (*Ops) HandleCouponUpdated ¶ added in v0.2.0
func (*Ops) HandleCustomerUpdated ¶ added in v0.2.0
func (*Ops) HandleEvent ¶ added in v0.2.0
func (*Ops) HandlePriceDeleted ¶ added in v0.2.0
func (*Ops) HandlePriceUpdated ¶ added in v0.2.0
func (*Ops) HandleProductDeleted ¶ added in v0.2.0
func (*Ops) HandleProductUpdated ¶ added in v0.2.0
func (*Ops) HandleSubscriptionDiscountUpdated ¶ added in v0.2.0
func (*Ops) HandleSubscriptionUpdated ¶ added in v0.2.0
func (*Ops) InitialLoad ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.