Documentation
¶
Index ¶
- func AuthMiddleware(svc *svc.ServiceContext) app.HandlerFunc
- func AuthenticateRequest(ctx context.Context, svc *svc.ServiceContext, token string, path string) (context.Context, error)
- func CorsMiddleware(c context.Context, ctx *app.RequestContext)
- func DecryptDeviceRequest(ctx *app.RequestContext, encryptionKey string) bool
- func DeviceMiddleware(srvCtx *svc.ServiceContext) app.HandlerFunc
- func EncryptDeviceResponse(ctx *app.RequestContext, encryptionKey string)
- func LoggerMiddleware(svc *svc.ServiceContext) app.HandlerFunc
- func NotifyMiddleware(svc *svc.ServiceContext) app.HandlerFunc
- func PaymentNotifyContext(ctx context.Context, svc *svc.ServiceContext, token string) (context.Context, error)
- func TraceMiddleware(_ *svc.ServiceContext) app.HandlerFunc
- type PaymentParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthMiddleware ¶
func AuthMiddleware(svc *svc.ServiceContext) app.HandlerFunc
func AuthenticateRequest ¶ added in v1.2.14
func CorsMiddleware ¶
func CorsMiddleware(c context.Context, ctx *app.RequestContext)
func DecryptDeviceRequest ¶ added in v1.3.13
func DecryptDeviceRequest(ctx *app.RequestContext, encryptionKey string) bool
DecryptDeviceRequest decrypts device-login query and request-body payloads in place.
func DeviceMiddleware ¶ added in v1.1.8
func DeviceMiddleware(srvCtx *svc.ServiceContext) app.HandlerFunc
func EncryptDeviceResponse ¶ added in v1.3.13
func EncryptDeviceResponse(ctx *app.RequestContext, encryptionKey string)
EncryptDeviceResponse encrypts the top-level data field of a device-login response in place.
func LoggerMiddleware ¶
func LoggerMiddleware(svc *svc.ServiceContext) app.HandlerFunc
func NotifyMiddleware ¶
func NotifyMiddleware(svc *svc.ServiceContext) app.HandlerFunc
func PaymentNotifyContext ¶ added in v1.2.14
func TraceMiddleware ¶
func TraceMiddleware(_ *svc.ServiceContext) app.HandlerFunc
Types ¶
type PaymentParams ¶
Click to show internal directories.
Click to hide internal directories.