notify

package
v0.0.0-...-7ef1397 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Send

func Send(message string)

Send 根据server的配置,调用各个接口handler发送消息通知

Types

type DingTalk

type DingTalk struct {
}

func (*DingTalk) Send

func (d *DingTalk) Send(token string, message string) (err error)

type DingTalkResponseInfo

type DingTalkResponseInfo struct {
	Code    int    `json:"errcode"`
	Message string `json:"errmsg"`
}

type Feishu

type Feishu struct {
}

func (*Feishu) Send

func (f *Feishu) Send(token string, message string) (err error)

type FeishuResponseInfo

type FeishuResponseInfo struct {
	Code    int    `json:"StatusCode"`
	Message string `json:"StatusMessage"`
}

type Sender

type Sender interface {
	Send(token string, message string) (err error)
}

Sender 各个API的消息通知调用handler

type ServerChan

type ServerChan struct {
}

func (*ServerChan) Send

func (s *ServerChan) Send(token string, message string) (err error)

type ServerChanResponseInfo

type ServerChanResponseInfo struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
	Info    string `json:"info"`
}

Jump to

Keyboard shortcuts

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