notify

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2024 License: MIT Imports: 11 Imported by: 1

README

notify

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dingtalk

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

func NewDingtalk

func NewDingtalk(accessToken, secret string) *Dingtalk

func (*Dingtalk) Send

func (d *Dingtalk) Send(subject, message string) error

type Notifier

type Notifier interface {
	Send(string, string) error
}

type Notify

type Notify struct {
	Disabled bool
	// contains filtered or unexported fields
}

func New

func New() *Notify

func (*Notify) Send

func (n *Notify) Send(subject, message string) error

func (*Notify) UseService

func (n *Notify) UseService(service ...Notifier)

type WeiXinWork

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

func NewWeiXinWork

func NewWeiXinWork(corpid, agentid, corpsecret string) *WeiXinWork

func (*WeiXinWork) Send

func (w *WeiXinWork) Send(subject, message string) error

Jump to

Keyboard shortcuts

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