validator.go 456 B

123456789101112131415
  1. // Copyright 2021 Tencent Inc. All rights reserved.
  2. // Package auth 微信支付 API v3 Go SDK 安全验证相关接口
  3. package auth
  4. import (
  5. "context"
  6. "net/http"
  7. )
  8. // Validator 应答报文验证器
  9. type Validator interface {
  10. Validate(ctx context.Context, response *http.Response) error // 对 HTTP 应答报文进行验证
  11. GetAcceptSerial(ctx context.Context) (serial string, err error) // 客户端可以处理的证书或者公钥序列号
  12. }