Documentation
¶
Index ¶
- Constants
- func DirectTCPIPHandler(srv *ssh.Server, conn *gossh.ServerConn, newChan gossh.NewChannel, ...)
- func Serve(ctx context.Context, config *Config, auth auth.Auth)
- type Config
- type Dispatch
- type EventMessage
- type Request
- type Response
- type Stats
- type SyncEventMessage
- type UpdateEventMessage
- type WrapHttpEntity
Constants ¶
View Source
const ( NotFound = `HTTP/1.0 404 Not Found Server: webs.sh Content-Length: %d Tunnel %s not found ` BadRequest = `HTTP/1.0 400 Bad Request Server: webs.sh Content-Length: 12 Bad Request ` )
View Source
const ( // Lowercase Character sets for random string generation Lowercase = "abcdefghijklmnopqrstuvwxyz" Uppercase = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" Digits = "0123456789" // AlphaNum Predefined character sets AlphaNum = Lowercase + Digits )
Variables ¶
This section is empty.
Functions ¶
func DirectTCPIPHandler ¶
func DirectTCPIPHandler(srv *ssh.Server, conn *gossh.ServerConn, newChan gossh.NewChannel, ctx ssh.Context)
Types ¶
type EventMessage ¶
type EventMessage struct {
Name string `json:"name"`
Data interface{} `json:"data"`
}
type SyncEventMessage ¶
type SyncEventMessage struct {
Tunnel string `json:"tunnel"`
Stats *Stats `json:"stats"`
HttpEntities []*WrapHttpEntity `json:"httpEntities"`
}
type UpdateEventMessage ¶
type UpdateEventMessage struct {
Stats *Stats `json:"stats"`
HttpEntity *WrapHttpEntity `json:"httpEntity"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.