diff --git a/sessionUtils/session.go b/sessionUtils/session.go deleted file mode 100644 index 65df353..0000000 --- a/sessionUtils/session.go +++ /dev/null @@ -1,5 +0,0 @@ -package sessionUtils - -func GetJSSessionInterface(s Session) JSSessionInterface { - return JSSessionInterface{} -} diff --git a/sessionUtils/sessionUtils.go b/sessionUtils/sessionUtils.go new file mode 100644 index 0000000..5d62800 --- /dev/null +++ b/sessionUtils/sessionUtils.go @@ -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{} +}