New session now expects a struct with everything it needs and a context (#228)
to pass along
This commit is contained in:
committed by
Marcos Nils
parent
08f1ead2a9
commit
da6a55fb5c
@@ -4,6 +4,15 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type SessionConfig struct {
|
||||
Playground *Playground
|
||||
UserId string
|
||||
Duration time.Duration
|
||||
Stack string
|
||||
StackName string
|
||||
ImageName string
|
||||
}
|
||||
|
||||
type Session struct {
|
||||
Id string `json:"id" bson:"id"`
|
||||
CreatedAt time.Time `json:"created_at" bson:"created_at"`
|
||||
|
||||
Reference in New Issue
Block a user