Versions in this module Expand all Collapse all v1 v1.0.4 Mar 9, 2025 v1.0.3 Mar 9, 2025 Changes in this version type Tty + Url string v1.0.2 Feb 17, 2025 Changes in this version + func AuthMiddleware(accounts gin.Accounts) gin.HandlerFunc v1.0.1 Jan 31, 2024 v1.0.0 Jan 2, 2023 Changes in this version + const Heartbeat + const Input + const Output + const Ping + const Pong + const ResizeTerminal + const SetPreferences + const SetReconnect + const SetWindowTitle + var PrivateKey string + var PublicKey string + var Static embed.FS + var Views embed.FS + func Admin(c *gin.Context) + func Check(c *gin.Context) + func DecodeBase64(in string) (string, error) + func DecodeBase64Bytes(in string) ([]byte, error) + func EncodeBase64(in string) string + func GenerateRSAKey(bits int) error + func GetIPs() (ips []string) + func GetRandomSalt() string + func GetRandomString(len int) string + func Home() (string, error) + func Index(c *gin.Context) + func InitBoltDB() *storm.DB + func IsPathExists(path string) bool + func RegisterTty(router *gin.Engine, data *Tty, isLocal bool) + func RsaDecrypt(ciphertext []byte) ([]byte, error) + func RsaEncrypt(origData []byte) ([]byte, error) + func ServeGin(data *Tty) + func TlsHandler(host, port string) gin.HandlerFunc + func Who(c *gin.Context) + func Ws(c *gin.Context) + type Aduit struct + Command string + Created time.Time + Id int64 + Pid int + Remoteaddr string + Status string + Token string + func GetAduit(name string) ([]Aduit, error) + func (this *Aduit) Save() error + type ClientContext struct + Cmd *exec.Cmd + Pty *os.File + Request *http.Request + WriteMutex *sync.Mutex + WsConn *websocket.Conn + Xtermjs *XtermJs + func (this *ClientContext) HandleClient() + func (this *ClientContext) ParseXsrf(info []byte) (string, string, bool) + func (this *ClientContext) Receive(quitChan chan bool) + func (this *ClientContext) Send(quitChan chan bool) + type Lflxp interface + Check func() error + Execute func() error + type Options struct + Audit bool + CloseSignal int + CrtPath string + EnableTLS bool + IsDebug bool + IsReconnect bool + KeyPath string + MaxConnections int64 + PermitWrite bool + Xsrf bool + type Server struct + func NewServer() *Server + func (this *Server) DoneGo() + func (this *Server) StartGo() + func (this *Server) WaitGo() + type Tty struct + Cmds []string + CrtPath string + EnableTLS bool + Host string + IsAudit bool + IsDebug bool + IsPermitWrite bool + IsProf bool + IsReconnect bool + IsXsrf bool + KeyPath string + MaxConnections int64 + Password string + Port string + Username string + func (this *Tty) Check() error + func (this *Tty) Execute() error + type Whos struct + Created time.Time + Id int64 + Path string + Remoteaddr string + func GetWhos(name string) ([]Whos, error) + func (this *Whos) Save() error + type XtermJs struct + Cmds []string + Connections *int64 + Options Options + Server *Server + Title string + XsrfToken sync.Map