shell

package
v0.0.0-...-d817ec6 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0.

Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0.

Index

Constants

This section is empty.

Variables

View Source
var (
	SteamMap = NewStreamMap() // websocket 连接流的 map
)

Functions

func Connect

func Connect(c *gin.Context)

连接 WebSocket

func NewStreamMap

func NewStreamMap() *streamMap

func TestHostConnect

func TestHostConnect(c *controller.Context) (res schema.Response)

测试一个服务器是否可连接

func TestPublicServer

func TestPublicServer(c *controller.Context) (res schema.Response)

测试一个公开的服务器是否可用

Types

type TestPublicServerParams

type TestPublicServerParams struct {
	Username string `json:"username" valid:"required~请输入用户名"`
	Host     string `json:"host" valid:"required~请输入服务器,host~请输入正确的服务器地址"`
	Port     uint   `json:"port" valid:"required~请输入端口,port~请输入正确的端口,range(1|65535)"`
	Password string `json:"password" valid:"required~请输入密码"`
}

Jump to

Keyboard shortcuts

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