Documentation ¶
Overview ¶
Package dtids contains dtid convenience functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(mmShard *vtgatepb.Session_ShardSession) string
New generates a dtid based on Session_ShardSession.
func ShardSession ¶
func ShardSession(dtid string) (*vtgatepb.Session_ShardSession, error)
ShardSession builds a Session_ShardSession from a dtid.
func TransactionID ¶
TransactionID extracts the original transaction ID from the dtid.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.