client

package
v0.0.0-...-96b04c8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DingTalk

type DingTalk struct {
	WebHook string `json:"webHook"`
	Secret  string `json:"secret"`
}

func (DingTalk) Send

func (d DingTalk) Send(receivers []string, title string, content []byte, others ...string) error

type Email

type Email struct {
	Address  string `json:"address"`
	Port     int    `json:"port"`
	Username string `json:"username"`
	Password string `json:"password"`
}

func (Email) Send

func (e Email) Send(receivers []string, title string, content []byte, others ...string) error

type WorkWeiXin

type WorkWeiXin struct {
	CorpID     string `json:"corpId"`
	AgentID    string `json:"agentId"`
	CorpSecret string `json:"corpSecret"`
	Token      string `json:"token"`
}

func (WorkWeiXin) Send

func (w WorkWeiXin) Send(receivers []string, title string, content []byte, others ...string) error

Jump to

Keyboard shortcuts

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