models

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SftpWebSocketMessageTypeHeartbeat = "heartbeat"
	SftpWebSocketMessageTypeID        = "cid"
)
View Source
const (
	SIGN_IN_FORM_TYPE_ERROR_VALID = iota
	SIGN_IN_FORM_TYPE_ERROR_PASSWORD
	SIGN_IN_FORM_TYPE_ERROR_TEST
)
View Source
const (
	SSHWebSocketMessageTypeTerminal  = "terminal"
	SSHWebSocketMessageTypeHeartbeat = "heartbeat"
	SSHWebSocketMessageTypeResize    = "resize"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type JsonResponse

type JsonResponse struct {
	HasError bool        `json:"has_error"`
	Message  interface{} `json:"message"`
	Addition interface{} `json:"addition"`
}

type SSHWebSocketMessage

type SSHWebSocketMessage struct {
	Type string      `json:"type"`
	Data interface{} `json:"data"` // json.RawMessage
}

type SftpWebSocketMessage

type SftpWebSocketMessage struct {
	Type string      `json:"type"`
	Data interface{} `json:"data"` // json.RawMessage
}

type TerminalMessage

type TerminalMessage struct {
	DataBase64 string `json:"base64"`
}

normal terminal message

type UserInfo

type UserInfo struct {
	utils.JwtConnection
	Username string `json:"username"`
	Password string `json:"-"`
}

type WindowResize

type WindowResize struct {
	Cols int `json:"cols"`
	Rows int `json:"rows"`
}

terminal window resize

Jump to

Keyboard shortcuts

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