dtids

package
v2.1.0-rc.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 6, 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.

Jump to

Keyboard shortcuts

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