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.
13 lines
141 B
Go
13 lines
141 B
Go
package types
|
|
|
|
type Client struct {
|
|
Id string
|
|
ViewPort ViewPort
|
|
Session *Session
|
|
}
|
|
|
|
type ViewPort struct {
|
|
Rows uint
|
|
Cols uint
|
|
}
|