Documentation ¶
Index ¶
Constants ¶
View Source
const ( XID = "x-dbpack-xid" BranchID = "x-dbpack-branch-id" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpFilterConfig ¶
type HttpFilterConfig struct { ApplicationID string `yaml:"appid" json:"appid"` TransactionInfos []*TransactionInfo `yaml:"transaction_infos" json:"transaction_infos"` TCCResourceInfos []*TccResourceInfo `yaml:"tcc_resource_infos" json:"tcc_resource_infos"` }
HttpFilterConfig http filter config
type MatchType ¶ added in v0.1.2
type MatchType byte
func (*MatchType) UnmarshalText ¶ added in v0.1.2
type TccResourceInfo ¶ added in v0.1.2
type TccResourceInfo struct { PrepareRequestPath string `yaml:"prepare_request_path" json:"prepare_request_path"` CommitRequestPath string `yaml:"commit_request_path" json:"commit_request_path"` RollbackRequestPath string `yaml:"rollback_request_path" json:"rollback_request_path"` }
TccResourceInfo tcc resource config
type TransactionInfo ¶
type TransactionInfo struct { RequestPath string `yaml:"request_path" json:"request_path"` Timeout int32 `yaml:"timeout" json:"timeout"` MatchType MatchType `yaml:"match_type" json:"match_type"` }
TransactionInfo transaction info config
Source Files ¶
Click to show internal directories.
Click to hide internal directories.