Commit 3cda0a7 1 parent d8b63c5 commit 3cda0a7 Copy full SHA for 3cda0a7
File tree 5 files changed +17
-6
lines changed
5 files changed +17
-6
lines changed Original file line number Diff line number Diff line change 1
1
package cloudshellwrapper
2
2
3
- var VersionInfo string = "nightly-24.10.20e "
3
+ var VersionInfo string = "nightly-24.10.20f "
4
4
5
5
// create html-public files
6
6
var HtmlPublicPrefixPath string = "./html-public/"
Original file line number Diff line number Diff line change 1
1
package cloudshellwrapper
2
2
3
- var VersionInfo string = "nightly-24.10.20d "
3
+ var VersionInfo string = "nightly-24.10.20e "
4
4
5
5
// create html-public files
6
6
var HtmlPublicPrefixPath string = "./html-public/"
Original file line number Diff line number Diff line change @@ -20,11 +20,22 @@ import (
20
20
const DefaultConnectionErrorLimit = 10
21
21
22
22
type HandlerOpts struct {
23
- AllowedHostnames []string
24
- Arguments []string
25
- Command string
23
+ // AllowedHostnames is a list of strings which will be matched to the client
24
+ // requesting for a connection upgrade to a websocket connection
25
+ AllowedHostnames []string
26
+ // Arguments is a list of strings to pass as arguments to the specified COmmand
27
+ Arguments []string
28
+ // Command is the path to the binary we should create a TTY for
29
+ Command string
30
+ // ConnectionErrorLimit defines the number of consecutive errors that can happen
31
+ // before a connection is considered unusable
26
32
ConnectionErrorLimit int
27
- CreateLogger func (string , * http.Request ) Logger
33
+ // CreateLogger when specified should return a logger that the handler will use.
34
+ // The string argument being passed in will be a unique identifier for the
35
+ // current connection. When not specified, logs will be sent to stdout
36
+ CreateLogger func (string , * http.Request ) Logger
37
+ // KeepalivePingTimeout defines the maximum duration between which a ping and pong
38
+ // cycle should be tolerated, beyond this the connection should be deemed dead
28
39
KeepalivePingTimeout time.Duration
29
40
MaxBufferSizeBytes int
30
41
}
You can’t perform that action at this time.
0 commit comments