dtids

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

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

func TransactionID(dtid string) (int64, error)

TransactionID extracts the original transaction ID from the dtid.

Types

This section is empty.

Jump to

Keyboard shortcuts

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