Documentation
¶
Index ¶
Constants ¶
View Source
const ( BranchIdPrefix = "-" SeataXaXidFormatId = 9752 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*XABranchXid)
func WithBranchId ¶
func WithBranchQualifier ¶
func WithGlobalTransactionId ¶
type XABranchXid ¶
type XABranchXid struct {
// contains filtered or unexported fields
}
func Build ¶
func Build(xid string, branchId int64) *XABranchXid
func BuildWithByte ¶
func BuildWithByte(globalTransactionId []byte, branchQualifier []byte) *XABranchXid
func NewXABranchXid ¶
func NewXABranchXid(opt ...Option) *XABranchXid
func (*XABranchXid) GetBranchId ¶
func (x *XABranchXid) GetBranchId() int64
func (*XABranchXid) GetBranchQualifier ¶
func (x *XABranchXid) GetBranchQualifier() []byte
func (*XABranchXid) GetFormatId ¶
func (x *XABranchXid) GetFormatId() int
func (*XABranchXid) GetGlobalTransactionId ¶
func (x *XABranchXid) GetGlobalTransactionId() []byte
func (*XABranchXid) GetGlobalXid ¶
func (x *XABranchXid) GetGlobalXid() string
func (*XABranchXid) String ¶
func (x *XABranchXid) String() string
Click to show internal directories.
Click to hide internal directories.