Help us shape the future of Go! Take the 2026 Go Developer Survey

ops

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 26, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

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 (o *Ops) EnsureCouponLoaded(c context.Context, couponID string) error

func (*Ops) EnsureCustomerLoaded added in v0.2.0

func (o *Ops) EnsureCustomerLoaded(ctx context.Context, customerID string) error

func (*Ops) EnsurePriceLoaded added in v0.2.0

func (o *Ops) EnsurePriceLoaded(c context.Context, priceID string) error

func (*Ops) EnsureProductLoaded added in v0.2.0

func (o *Ops) EnsureProductLoaded(c context.Context, productId string) error

func (*Ops) HandleCouponDeleted added in v0.2.0

func (o *Ops) HandleCouponDeleted(c context.Context, coupon *stripe.Coupon) error

func (*Ops) HandleCouponUpdated added in v0.2.0

func (o *Ops) HandleCouponUpdated(c context.Context, partialCoupon *stripe.Coupon) error

func (*Ops) HandleCustomerUpdated added in v0.2.0

func (o *Ops) HandleCustomerUpdated(c context.Context, customer *stripe.Customer) error

func (*Ops) HandleEvent added in v0.2.0

func (o *Ops) HandleEvent(c context.Context, e *stripe.Event) error

func (*Ops) HandlePriceDeleted added in v0.2.0

func (o *Ops) HandlePriceDeleted(c context.Context, price *stripe.Price) error

func (*Ops) HandlePriceUpdated added in v0.2.0

func (o *Ops) HandlePriceUpdated(c context.Context, price *stripe.Price) error

func (*Ops) HandleProductDeleted added in v0.2.0

func (o *Ops) HandleProductDeleted(c context.Context, product *stripe.Product) error

func (*Ops) HandleProductUpdated added in v0.2.0

func (o *Ops) HandleProductUpdated(c context.Context, product *stripe.Product) error

func (*Ops) HandleSubscriptionDiscountUpdated added in v0.2.0

func (o *Ops) HandleSubscriptionDiscountUpdated(c context.Context, discount *stripe.Discount) error

func (*Ops) HandleSubscriptionUpdated added in v0.2.0

func (o *Ops) HandleSubscriptionUpdated(ctx context.Context, subscription *stripe.Subscription) error

func (*Ops) InitialLoad added in v0.2.0

func (o *Ops) InitialLoad(ctx context.Context, purge bool) error

func (*Ops) SyncEvents added in v0.2.0

func (o *Ops) SyncEvents(ctx context.Context) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL