consts

package
v0.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2023 License: MulanPSL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Version         = "0.1.6"                      // 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"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL