util

package
v0.0.0-...-fa4cddc Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const SUB_REQ_ID = "sub-id"

Variables

This section is empty.

Functions

func GetHostName

func GetHostName() string

func GetIp

func GetIp() string

Types

type ClientLogger

type ClientLogger struct {
	*log.Logger
	ReqId string
	// contains filtered or unexported fields
}

func CloneLogger

func CloneLogger(log *ClientLogger) *ClientLogger

use unique loggerId for every specific op

func CloneLoggerAssignReqId

func CloneLoggerAssignReqId(log *ClientLogger, reqId string) *ClientLogger

func GenSubLogger

func GenSubLogger(log *ClientLogger) *ClientLogger

func NewLogger

func NewLogger(logCfg *log.Config) *ClientLogger

func (*ClientLogger) GetReqId

func (c *ClientLogger) GetReqId() string

Jump to

Keyboard shortcuts

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