cron

package
v3.14.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2017 License: Apache-2.0, Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildCommonMailContent

func BuildCommonMailContent(event *model.Event) string

func BuildCommonQQContent

func BuildCommonQQContent(event *model.Event) string

func BuildCommonSMSContent

func BuildCommonSMSContent(event *model.Event) string

func Callback

func Callback(event *model.Event, action *api.Action) string

func CombineMail

func CombineMail()

func CombineQQ

func CombineQQ()

func CombineServerchan

func CombineServerchan()

func CombineSms

func CombineSms()

func GenerateMailContent

func GenerateMailContent(event *model.Event) string

func GenerateQQContent

func GenerateQQContent(event *model.Event) string

func GenerateServerchanContent

func GenerateServerchanContent(event *model.Event) string

func GenerateSmsContent

func GenerateSmsContent(event *model.Event) string

func HandleCallback

func HandleCallback(event *model.Event, action *api.Action)

func ParseUserMail

func ParseUserMail(event *model.Event, action *api.Action)

func ParseUserQQ

func ParseUserQQ(event *model.Event, action *api.Action)

func ParseUserServerchan

func ParseUserServerchan(event *model.Event, action *api.Action)

func ParseUserSms

func ParseUserSms(event *model.Event, action *api.Action)

func ReadExternalEvent

func ReadExternalEvent()

func ReadHighEvent

func ReadHighEvent()

func ReadLowEvent

func ReadLowEvent()

Types

type MailDto

type MailDto struct {
	Priority int    `json:"priority"`
	Metric   string `json:"metric"`
	Subject  string `json:"subject"`
	Content  string `json:"content"`
	Email    string `json:"email"`
	Status   string `json:"status"`
}

type QQDto

type QQDto struct {
	Priority int    `json:"priority"`
	Metric   string `json:"metric"`
	Subject  string `json:"subject"`
	Content  string `json:"content"`
	Email    string `json:"email"`
	Status   string `json:"status"`
}

type ServerchanDto

type ServerchanDto struct {
	Priority int    `json:"priority"`
	Metric   string `json:"metric"`
	Subject  string `json:"subject"`
	Content  string `json:"content"`
	Username string `json:"username"`
	Sckey    string `json:"sckey"`
	Status   string `json:"status"`
}

type SmsDto

type SmsDto struct {
	Priority int    `json:"priority"`
	Metric   string `json:"metric"`
	Content  string `json:"content"`
	Phone    string `json:"phone"`
	Status   string `json:"status"`
}

Jump to

Keyboard shortcuts

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