package
4.0.0+incompatible
Repository: https://github.com/ftchinese/subscription-api.git
Documentation: pkg.go.dev

# Functions

DumpRequest print request headers.
No description provided by the author
GetJSONString get a string field from http request body.
No description provided by the author
No description provided by the author
NewGiftCardRouter create a new instance of GiftCardRouter.
No description provided by the author
NewPaywallRouter creates a new instance of pricing router.
NewStripeRouter initializes StripeRouter.
No description provided by the author
No description provided by the author
NewWxAuth creates a new WxLoginRouter instance.
NoCache set Cache-Control request header.
No description provided by the author
RequireFtcID middleware makes sure all request header contains `X-User-Id` field.
RequireFtcOrUnionID middleware makes sure all request header contains `X-User-Id` field.
RequireUnionID middleware makes sure all request header contains `X-Union-Id` field.
WxCallbackHandler is used to help web app to get OAuth 2.0 code.

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
PaywallRouter handles pricing plans.
No description provided by the author
SubsRouter is the base type used to handle shared payment operations.
UserShared wraps functionalities common to AuthRouter and AccountRouter.
WxAuthRouter handles wechat login.