Skip to content

Commit 6b9cf46

Browse files
Updated contextKey type declarations
1 parent 5d78245 commit 6b9cf46

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

api/middleware/model.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package middleware
2+
3+
/* contextKey type for middleware context value passing */
4+
type contextKey string
5+
6+
/* defining contextKey types */
7+
const (
8+
ContextKeyUsername contextKey = "username"
9+
ContextKeySessionID contextKey = "session_id"
10+
)

0 commit comments

Comments
 (0)