cmdb

package
v0.0.0-...-1dfee00 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SteamMap = NewStreamMap() // 全局 websocket 连接流的 map, 管理所有连接SSH的客户端
)
View Source
var (
	UpGrader = websocket.Upgrader{
		ReadBufferSize:  1024,
		WriteBufferSize: 1024 * 1024 * 10,

		CheckOrigin: func(r *http.Request) bool {
			return true
		},
	}
)

Functions

func ListHost

func ListHost(c *gin.Context)

ListHost 列出主机

func ListHostGroup

func ListHostGroup(c *gin.Context)

ListHostGroup 列出主机分组

func NewStreamMap

func NewStreamMap() *streamMap

func WebSocketConnect

func WebSocketConnect(c *gin.Context)

Types

This section is empty.

Jump to

Keyboard shortcuts

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