Documentation ¶
Index ¶
Constants ¶
View Source
const ( SignInIdLength = 4 SignInSecretLength = 16 SessionIdLength = 8 SessionSecretLength = 40 CsrfTokenLength = 40 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { sync.Mutex // Deadline is the maximum time the listener will block // between connections. As a consequence, this duration // also sets the max length of time the SSH server will // be unresponsive before shutting down. Deadline time.Duration // Handlers is an array of SSHHandlers which process incoming connections Handlers map[string]handlers.SSHHandler // Logger logs errors and debug output for the SSH server Logger log.Logger // Bind specifies the Bind address the SSH server will listen on Bind string // PrivateKey is added to the SSH config as a host key PrivateKey ssh.Signer // System is the System datamodel System datamodel.System // contains filtered or unexported fields }
Config is used to setup the SSHServer.
Click to show internal directories.
Click to hide internal directories.