messages

package
v0.2.13 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const BaseURL = "dysmsapi.aliyuncs.com"

Variables

This section is empty.

Functions

This section is empty.

Types

type AliClient

type AliClient struct {
	*dysmsapi20170525.Client
}

func NewAliClient

func NewAliClient(opts *AliMessageOptions) (*AliClient, error)

func (*AliClient) Send

func (c *AliClient) Send(ctx context.Context, msg *foundation.MessageTemplate) error

type AliMessageOptions

type AliMessageOptions struct {
	AccessKeyID     string `yaml:"access_key_id" mapstructure:"access_key_id"`
	AccessKeySecret string `yaml:"access_key_secret" mapstructure:"access_key_secret"`
}

Jump to

Keyboard shortcuts

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