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:
12
pwd/types/client.go
Normal file
12
pwd/types/client.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package types
|
||||
|
||||
type Client struct {
|
||||
Id string
|
||||
ViewPort ViewPort
|
||||
Session *Session
|
||||
}
|
||||
|
||||
type ViewPort struct {
|
||||
Rows uint
|
||||
Cols uint
|
||||
}
|
||||
Reference in New Issue
Block a user