refactor session utils and add Json convertor
This commit is contained in:
parent
802442edba
commit
073c0b8e90
@ -1,5 +0,0 @@
|
|||||||
package sessionUtils
|
|
||||||
|
|
||||||
func GetJSSessionInterface(s Session) JSSessionInterface {
|
|
||||||
return JSSessionInterface{}
|
|
||||||
}
|
|
13
sessionUtils/sessionUtils.go
Normal file
13
sessionUtils/sessionUtils.go
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
package sessionUtils
|
||||||
|
|
||||||
|
import "encoding/json"
|
||||||
|
|
||||||
|
func ConvertServerSessionsToJSON(s Session) []byte {
|
||||||
|
s_json, err := json.Marshal(s)
|
||||||
|
_ = err //TODO: Check Errors
|
||||||
|
return s_json
|
||||||
|
}
|
||||||
|
|
||||||
|
func GetJSSessionInterface(s Session) JSSessionInterface {
|
||||||
|
return JSSessionInterface{}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user