web

package
v1.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2025 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UpGrader = websocket.Upgrader{
	ReadBufferSize:  4096,
	WriteBufferSize: 4096,
	CheckOrigin: func(r *http.Request) bool {
		return true
	},
	Subprotocols: []string{"guacamole"},
}

Functions

This section is empty.

Types

type ConnectReq

type ConnectReq struct {
	Type       string `json:"type"`
	ResourceId int64  `json:"resource_id"`
}

type CreateTunnelReq

type CreateTunnelReq struct {
	Width  string `json:"width"`
	Height string `json:"height"`
	Dpi    string `json:"dpi"`
}

type Handler

type Handler struct {
	RRSvc relation.RRSvc
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(RRSvc relation.RRSvc, resourceSvc resource.Service, attributeSvc attribute.Service) *Handler

func (*Handler) Connect

func (h *Handler) Connect(ctx *gin.Context, req ConnectReq) (ginx.Result, error)

func (*Handler) ConnectGuacTunnel

func (h *Handler) ConnectGuacTunnel(ctx *gin.Context) (ginx.Result, error)

func (*Handler) PrivateRoutes

func (h *Handler) PrivateRoutes(server *gin.Engine)

func (*Handler) SshSessionTunnel

func (h *Handler) SshSessionTunnel(ctx *gin.Context) error

type Session

type Session struct {
	Websocket *websocket.Conn
	Tunnel    *guacx.Tunnel
	// contains filtered or unexported fields
}

func (*Session) Close

func (s *Session) Close()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL