Documentation ¶
Index ¶
Constants ¶
View Source
const ( CommandRDBOperation = "RDB" CommandWatchTransactionOperation = "WatchTransaction" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetServerFunc ¶
type OPFINDANDMODIFY ¶
type OPREPLY ¶
type OPREPLY struct { ReplyHeader // 标准报文头 Count uint64 // 文档查询结果数 Docs Documents // 文档查询结果 }
type OPSTARTTTRANSATION ¶
type OPSTARTTTRANSATION struct {
MsgHeader
}
type Page ¶
type ReplyHeader ¶
type Transaction ¶
type Transaction struct { TxnID string `bson:"bk_txn_id"` // 事务ID,uuid RequestID string `bson:"bk_request_id"` // 请求ID,可选项 Processor string `bson:"processor"` // 处理进程号,结构为"IP:PORT-PID"用于识别事务session被存于那个TM多活实例 Status TxStatus `bson:"status"` // 事务状态,作为定时补偿判断条件,这个字段需要加索引 CreateTime time.Time `bson:"create_time"` // 创建时间,作为定时补偿判断条件和统计信息存在,这个字段需要加索引 LastTime time.Time `bson:"last_time"` // 修改时间,作为统计信息存在 }
func (Transaction) IntoHeader ¶
func (t Transaction) IntoHeader(header http.Header) http.Header
Click to show internal directories.
Click to hide internal directories.