tid

package
v0.0.0-...-ea0e1bd Latest Latest
Warning

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

Go to latest
Published: May 16, 2022 License: MIT Imports: 14 Imported by: 5

Documentation

Overview

Package tid 生成traceId进行日志追踪,基于时间纳秒级别。本机全局唯一.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get() int64

func Register

func Register(appName string, httpPort int, unilogAddr string) error

Register can only do once. unilogAddr 分布式日志统一中心地址. httpPort 用来向注册中心报告本机http服务port.

Types

This section is empty.

Jump to

Keyboard shortcuts

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