dtids

package
Version: v2.1.1+incompatible Latest Latest
Warning

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

Go to latest
Published: May 22, 2017 License: BSD-3-Clause 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.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL