dingbot

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dingbot

type Dingbot struct {
	Token  string `yaml:"token" json:"token"`
	Secret string `yaml:"secret" json:"secret"`
}

func New

func New(token, secret string) *Dingbot

func (*Dingbot) Notify

func (d *Dingbot) Notify(title, text string) error

type MarkdownMsg

type MarkdownMsg struct {
	MsgType  string `json:"msgtype"`
	Markdown struct {
		Title string `json:"title"`
		Text  string `json:"text"`
	} `json:"markdown"`
}

Jump to

Keyboard shortcuts

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