add request id generator and middleware file

This commit is contained in:
MaysWind
2020-10-17 17:47:42 +08:00
parent 187171f75c
commit 0d4493439d
5 changed files with 396 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
package requestid
type RequestIdGenerator interface {
GenerateRequestId(clientIpAddr string) string
GetCurrentServerUniqId() uint16
GetCurrentInstanceUniqId() uint16
}