notice

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Notice

func Notice(r record.Record)

Notice let bots to send notice

Types

type Announcer

type Announcer struct {
	Bots []Bot
}

Announcer is used for storage and schedule bots

func New

func New() *Announcer

New initializes a new Announcer

func (*Announcer) AddBot

func (a *Announcer) AddBot(b Bot) *Announcer

AddBot add a new bot to Announcer

type Bot

type Bot interface {
	// contains filtered or unexported methods
}

Bot is used to send notice

type DingTalk

type DingTalk struct {
	URL string
}

type Lark

type Lark struct {
	URL string
}

type Slack

type Slack struct {
	URL string
}

type Weixin

type Weixin struct {
	URL string
}

Jump to

Keyboard shortcuts

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