mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-19 01:04:25 +08:00
redesign the default request id generator, replace random number to client port
This commit is contained in:
@@ -2,7 +2,7 @@ package requestid
|
||||
|
||||
// RequestIdGenerator is common request generator interface
|
||||
type RequestIdGenerator interface {
|
||||
GenerateRequestId(clientIpAddr string) string
|
||||
GenerateRequestId(clientIpAddr string, clientPort uint16) string
|
||||
GetCurrentServerUniqId() uint16
|
||||
GetCurrentInstanceUniqId() uint16
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user