Documentation ¶
Index ¶
Constants ¶
View Source
const ( Version = "0.1.8" // SDK版本 UserAgentFormat = "HaoDuoPay-GO/%s (%s) GO/%s" // UserAgent中的信息 )
SDK 相关信息
View Source
const ( Authorization = "Authorization" // Header 中的 Authorization 字段 Accept = "Accept" // Header 中的 Accept 字段 ContentType = "Content-Type" // Header 中的 ContentType 字段 ContentLength = "Content-Length" // Header 中的 ContentLength 字段 UserAgent = "User-Agent" // Header 中的 User-Agent 字段 )
View Source
const ( ApplicationJSON = "application/json" ApplicationFORM = "application/x-www-form-urlencoded" ApplicationXML = "application/xml" )
常用 ContentType
View Source
const (
DefaultTimeout = 30 * time.Second // HTTP 请求默认超时时间
)
时间相关常量
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiName ¶
type ApiName string
const ( TradeCreate ApiName = "trade.create" TradeQuery ApiName = "trade.query" TradeClose ApiName = "trade.close" TradeRefund ApiName = "trade.refund" TradeRefundQuery ApiName = "trade.refundQuery" BillCheck ApiName = "bill.check" BillDownload ApiName = "bill.download" InvoiceCreate ApiName = "invoice.create" InvoiceQuery ApiName = "invoice.query" InvoiceRed ApiName = "invoice.red" )
Click to show internal directories.
Click to hide internal directories.