Storage has now it's own package.

Remove global `sessions` map and use configured storage.
Add a `types` package so both `pwd` and `storage` can access without
circular dependencies.
Now the session is prepared when requested and not on load.
This commit is contained in:
Jonathan Leibiusky @xetorthio
2017-06-14 18:35:21 -03:00
parent 2eff799c58
commit e9911abf94
22 changed files with 814 additions and 499 deletions

12
pwd/types/client.go Normal file
View File

@@ -0,0 +1,12 @@
package types
type Client struct {
Id string
ViewPort ViewPort
Session *Session
}
type ViewPort struct {
Rows uint
Cols uint
}