alarm

package
v0.0.0-...-bfc8f05 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ats

type Ats struct {
	AtMobiles []string `json:"atMobiles"`
	IsAtAll   bool     `json:"isAtAll"`
}

type Ding

type Ding struct {
	// contains filtered or unexported fields
}

func NewDing

func NewDing(token string, span int) *Ding

func (*Ding) Send

func (d *Ding) Send(module, msg string, phone ...string) error

type Message

type Message struct {
	MsgType string `json:"msgtype"`
	Text    Texts  `json:"text"`
	At      Ats    `json:"at"`
}

type Rsp

type Rsp struct {
	Errmsg  string `json:"errmsg"`
	Errcode int    `json:"errcode"`
}

type Texts

type Texts struct {
	Content string `json:"content"`
}

Jump to

Keyboard shortcuts

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