imbot

package
v3.6.4 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2021 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Messagers

func Messagers() map[string]*Message

func Register

func Register(name string, label string, m Messager)

func Unregister

func Unregister(names ...string)

Types

type Message

type Message struct {
	Name     string
	Label    string
	Messager Messager
}

func Open

func Open(name string) *Message

type Messager

type Messager interface {
	BuildURL(...string) string
	Reset() Messager
	SendText(url, text string, atMobiles ...string) error
	SendMarkdown(url, title, markdown string, atMobiles ...string) error
}

Directories

Path Synopsis
Package dingding 钉钉机器人
Package dingding 钉钉机器人
Package workwechat 企业微信机器人
Package workwechat 企业微信机器人

Jump to

Keyboard shortcuts

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