client

package
v0.0.0-...-de87630 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrChan chan bool    = make(chan bool)
	HttpC *http.Client = &http.Client{
		Transport: &http.Transport{
			TLSClientConfig: &tls.Config{
				InsecureSkipVerify: true,
			},
		},
		Timeout: time.Duration(default_TIME_OUT) * time.Second,
	}
)

Functions

func CyclicCheackPass

func CyclicCheackPass(chanIn <-chan bool)

持续验证直到失败退出

func DoAuth

func DoAuth(settings OWASettings) (bool, <-chan bool)

验证 连接服务器地址 示例: https://127.0.0.1:18809 如果输入空值的话

Types

type OWASettings

type OWASettings struct {
	HostAddr   string // 连接服务器地址 示例: https://127.0.0.1:18809
	SleepTime  uint64 // 接口访问超时秒数
	RetryTimes uint8  // 重试次数
}

客户端设置信息

Jump to

Keyboard shortcuts

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