package
0.0.0-20240415041022-463b32c03d39
Repository: https://github.com/readr-media/readr-restful.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# Constants

StatusInactive indicates this is not an active subscription now.
StatusInit means subscriptions is init.
StatusInitPayFail denotes fail when pay for the first time.
StatusOK means it is a functioning subscription.
StatusRoutinePayFail indicates failure when pays with token.

# Structs

Subscription is the model for unmarshalling JSON, and serialized to database.

# Interfaces

No description provided by the author
Subscriber provides the interface for different db backendgo:generate mockgen -package=mock -destination=test/mock/mock.go github.com/readr-media/readr-restful/pkg/subscription Subscriber.

# Type aliases

InvoiceStore holds the infos for invoice.
PaymentStore wraps the necessary data structure for sqlx gin could bind map[string]interface{} directly, but not sqlx.