model

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BranchTransactionDO

type BranchTransactionDO struct {
	Xid string `xorm:"xid"`

	TransactionId int64 `xorm:"transaction_id"`

	BranchId int64 `xorm:"branch_id"`

	ResourceGroupId string `xorm:"resource_group_id"`

	ResourceId string `xorm:"resource_id"`

	BranchType string `xorm:"branch_type"`

	Status int32 `xorm:"status"`

	ClientId string `xorm:"client_id"`

	ApplicationData []byte `xorm:"application_data"`

	GmtCreate time.Time `xorm:"gmt_create"`

	GmtModified time.Time `xorm:"gmt_modified"`
}

type GlobalTransactionDO

type GlobalTransactionDO struct {
	Xid string `xorm:"xid"`

	TransactionId int64 `xorm:"transaction_id"`

	Status int32 `xorm:"status"`

	ApplicationId string `xorm:"application_id"`

	TransactionServiceGroup string `xorm:"transaction_service_group"`

	TransactionName string `xorm:"transaction_name"`

	Timeout int32 `xorm:"timeout"`

	BeginTime int64 `xorm:"begin_time"`

	ApplicationData []byte `xorm:"application_data"`

	GmtCreate time.Time `xorm:"gmt_create"`

	GmtModified time.Time `xorm:"gmt_modified"`
}

type LockDO

type LockDO struct {
	Xid string `xorm:"xid"`

	TransactionId int64 `xorm:"transaction_id"`

	BranchId int64 `xorm:"branch_id"`

	ResourceId string `xorm:"resource_id"`

	TableName string `xorm:"table_name"`

	Pk string `xorm:"pk"`

	RowKey string `xorm:"row_key"`

	GmtCreate time.Time `xorm:"created"`

	GmtModified time.Time `xorm:"updated"`
}

type SessionCondition

type SessionCondition struct {
	TransactionId      int64
	Xid                string
	Status             meta.GlobalStatus
	Statuses           []meta.GlobalStatus
	OverTimeAliveMills int64
}

Jump to

Keyboard shortcuts

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