sdsmsaliyun

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package sdsmsaliyun 阿里云发送短信服务

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(config *Config) (*Client, error)

func (*Client) Config

func (c *Client) Config() *Config

func (*Client) Send

func (c *Client) Send(ctx context.Context, req *sdsms.SendRequest) error

type Config

type Config struct {
	Endpoint        string `json:"endpoint" toml:"endpoint" yaml:"endpoint"`
	AccessId        string `json:"access_id" toml:"access_id" yaml:"access_id"`
	AccessKey       string `json:"access_key" toml:"access_key" yaml:"access_key"`
	DefaultSignName string `json:"default_sign_name" toml:"default_sign_name" yaml:"default_sign_name"`
}

Jump to

Keyboard shortcuts

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