Skip to content

Commit

Permalink
add ctxKey type for session key
Browse files Browse the repository at this point in the history
  • Loading branch information
godzie44 committed Sep 23, 2020
1 parent 6b53bf9 commit 244e43b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion orm/orm.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ import (
"github.com/godzie44/d3/orm/schema"
)

const sessionKey = "d3_session"
type ctxKey string

const sessionKey ctxKey = "d3_session"

// Orm - d3 orm instance.
type Orm struct {
Expand Down

0 comments on commit 244e43b

Please sign in to comment.