notify

package
v1.8.136 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: Zlib Imports: 10 Imported by: 0

Documentation

Overview

*

  • 七牛云

*

  • 腾讯云

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenSmsValidateCode

func GenSmsValidateCode(width int) string

GenSmsValidateCode 随机几位数字验证码生成

func SendEmail

func SendEmail(op *config.Options, content interface{}, call FillEmailCallback) error

func SendQiNiuYun added in v1.8.4

func SendQiNiuYun(config *config.SmsConfig, phone string, content string) (string, error)

func SendSms

func SendSms(config *config.SmsConfig, phone string, content interface{}, call SmsFillContentCallback) (string, error)

func SendTencentYun added in v1.8.4

func SendTencentYun(config *config.SmsConfig, phone string, content string) (string, error)

Types

type FillEmailCallback

type FillEmailCallback func(*config.Options, interface{}) *bytes.Buffer

type SmsFillContentCallback

type SmsFillContentCallback func(interface{}) string

Jump to

Keyboard shortcuts

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