common

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// IPAddress when started, initialized
	IPAddress string
	// Port when started, initialized
	Port int
)

Functions

func GenerateXID

func GenerateXID(tranID int64) string

GenerateXID generate xid

func GetTransactionID

func GetTransactionID(xid string) int64

GetTransactionID get transactionID by xid

func Init

func Init(ipAddress string, port int)

Init initialize ip address and port

Types

This section is empty.

Jump to

Keyboard shortcuts

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