constant

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProtocolShell = 1
	ProtocolHTTP  = 2

	HttpMethodGet  = 1
	HttpMethodPost = 2

	NotifyStatusNo      = 1
	NotifyStatusFailed  = 2
	NotifyStatusStopped = 3
	NotifyStatusKeyword = 4

	NotifyTypeEmail   = 1
	NotifyTypeWebhook = 2

	IsUsedYES = 1
	IsUsedNo  = -1
)

Variables

View Source
var HttpMethodText = map[int64]string{
	HttpMethodGet:  "GET",
	HttpMethodPost: "POST",
}
View Source
var IsUsedText = map[int64]string{
	IsUsedYES: "启用",
	IsUsedNo:  "禁用",
}
View Source
var NotifyStatusText = map[int64]string{
	NotifyStatusNo:      "不通知",
	NotifyStatusFailed:  "失败通知",
	NotifyStatusStopped: "结束通知",
	NotifyStatusKeyword: "结果关键字匹配通知",
}
View Source
var NotifyTypeText = map[int64]string{
	NotifyTypeEmail:   "邮件",
	NotifyTypeWebhook: "Webhook",
}
View Source
var ProtocolText = map[int64]string{
	ProtocolShell: "SHELL",
	ProtocolHTTP:  "HTTP",
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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