added in License

This commit is contained in:
2024-11-18 20:53:13 +05:30
parent 9d40c9d7ec
commit a2739dbbcd
38 changed files with 222 additions and 39 deletions

View File

@@ -1,3 +1,6 @@
// Copyright 2024 Patial Tech. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
import (

View File

@@ -1,3 +1,7 @@
// Copyright 2024 Patial Tech. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package handler
import (
@@ -31,7 +35,7 @@ func Request() func(http.Handler) http.Handler {
// ID
requestID := r.Header.Get("X-Request-Id")
if requestID == "" {
requestID = uid.ULID()
requestID = uid.NewUUID()
}
ctx = context.WithValue(ctx, RequestIDKey, requestID)

View File

@@ -1,3 +1,7 @@
// Copyright 2024 Patial Tech. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
import (