refactor session utils and add Json convertor

This commit is contained in:
cyber-dream 2022-10-28 15:27:34 +03:00
parent 802442edba
commit 073c0b8e90
2 changed files with 13 additions and 5 deletions

View File

@ -1,5 +0,0 @@
package sessionUtils
func GetJSSessionInterface(s Session) JSSessionInterface {
return JSSessionInterface{}
}

View 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{}
}