Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HostState ¶
type HostState struct { UserState // contains filtered or unexported fields }
HostState represents the state of the host, in particular the host session, along with its UserState.
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
Session represents a client session connected to the warp.
func NewSession ¶
NewSession sets up a session, opens the associated channels and return a Session object.
func (*Session) SendError ¶
SendError sends an error to the client which should trigger a disconnection on its end.
func (*Session) SendInternalError ¶
SendInternalError sends an internal error to the client which should trigger a disconnection on its end.
type Srv ¶
type Srv struct {
// contains filtered or unexported fields
}
Srv represents a running warpd server.
type UserState ¶
type UserState struct {
// contains filtered or unexported fields
}
UserState represents the state of a user along with a list of all his sessions.
type Warp ¶
type Warp struct {
// contains filtered or unexported fields
}
Warp represents a pty served from a remote host attached to a token.
func (*Warp) CientSessions ¶
CientSessions return all connected sessions that are not the host session.