create sessions
This commit is contained in:
parent
2a62f1f8c7
commit
5d36467946
5
sessionUtils/session.go
Normal file
5
sessionUtils/session.go
Normal file
@ -0,0 +1,5 @@
|
||||
package sessionUtils
|
||||
|
||||
func GetJSSessionInterface(s Session) JSSessionInterface {
|
||||
return JSSessionInterface{}
|
||||
}
|
17
sessionUtils/sessionTypes.go
Normal file
17
sessionUtils/sessionTypes.go
Normal file
@ -0,0 +1,17 @@
|
||||
package sessionUtils
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type Session struct {
|
||||
expirateAt time.Time
|
||||
gameId string
|
||||
}
|
||||
|
||||
type JSSessionInterface struct {
|
||||
GameID string `json:"gameId"`
|
||||
Title string `json:"title"`
|
||||
Image string `json:"image"`
|
||||
Description string `json:"description"`
|
||||
}
|
Loading…
Reference in New Issue
Block a user