model

package
v0.0.0-...-a7be08f Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogicSshWsSession

type LogicSshWsSession struct {
	IsFlagged bool `comment:"当前session是否包含禁止命令"`
	// contains filtered or unexported fields
}

func NewLogicSshWsSession

func NewLogicSshWsSession(cols int, rows int, isAdmin bool, sshClient *ssh.Client, wsConn *websocket.Conn) (*LogicSshWsSession, error)

func (*LogicSshWsSession) Close

func (sws *LogicSshWsSession) Close()

Close 关闭

func (*LogicSshWsSession) LogString

func (sws *LogicSshWsSession) LogString() string

func (*LogicSshWsSession) Start

func (sws *LogicSshWsSession) Start(quitChan chan bool)

func (*LogicSshWsSession) Wait

func (sws *LogicSshWsSession) Wait(quitChan chan bool)

type SshMachine

type SshMachine struct {
	Id        uint      `gorm:"primary_key" json:"id" form:"id"`
	Name      string    `json:"name" gorm:"type:varchar(50);unique_index"`
	Host      string    `json:"host" gorm:"type:varchar(50)"`
	Ip        string    `json:"ip" gorm:"type:varchar(80)"`
	Port      uint      `json:"port" gorm:"type:int(6)"`
	User      string    `json:"user" gorm:"type:varchar(20)"`
	Password  string    `json:"password,omitempty"`
	Key       string    `json:"key,omitempty"`
	Type      string    `json:"type" gorm:"type:varchar(20)"`
	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
}

Jump to

Keyboard shortcuts

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