Documentation ¶
Index ¶
- Constants
- func GuacdToWS(ws MessageWriter, guacd guacamole.InstructionReader, done chan bool)
- func InitStore(state *global.State, policyFunc models.CheckPolicyFunc)
- func WSToGuacd(ws MessageReader, guacd io.Writer, done chan bool)
- type GWAdapter
- type GWStore
- type MessageReader
- type MessageWriter
- type Proxy
- type Session
Constants ¶
View Source
const ( SocketTimeout = 15 * time.Second MaxGuacMessage = 8192 )
Variables ¶
This section is empty.
Functions ¶
func GuacdToWS ¶
func GuacdToWS(ws MessageWriter, guacd guacamole.InstructionReader, done chan bool)
Types ¶
type GWAdapter ¶
type GWAdapter interface { CheckPolicy(params *models.ConnectionParams, policy *models.Policy, adhoc bool) (bool, consts.FailedReason) // contains filtered or unexported methods }
var Store GWAdapter
Store is the package state variable which contains database connections
type GWStore ¶
func (GWStore) CheckPolicy ¶
func (s GWStore) CheckPolicy(params *models.ConnectionParams, policy *models.Policy, adhoc bool) (bool, consts.FailedReason)
type MessageReader ¶
type MessageReader interface { // ReadMessage should return a single complete message to send to guac ReadMessage() (int, []byte, error) }
MessageReader wraps a websocket connection and only permits Reading
type MessageWriter ¶
type MessageWriter interface { // WriteMessage writes one or more complete guac commands to the websocket WriteMessage(int, []byte) error }
MessageWriter wraps a websocket connection and only permits Writing
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
func (*Proxy) ServeWS ¶
func (p *Proxy) ServeWS(params models.ConnectionParams, uc models.UserContext, ws *websocket.Conn)
ServeWS serves rdp connection through guacamole proxy
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
func NewSession ¶
NewSession Create new guacamole session
Click to show internal directories.
Click to hide internal directories.