email

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: MIT Imports: 8 Imported by: 1

Documentation

Overview

* @Author: liziwei01 * @Date: 2022-03-04 15:43:21 * @LastEditors: liziwei01 * @LastEditTime: 2023-11-01 11:18:11 * @Description: file content

* @Author: liziwei01 * @Date: 2022-03-04 13:52:11 * @LastEditors: liziwei01 * @LastEditTime: 2022-03-21 17:43:10 * @Description: file content

* @Author: liziwei01 * @Date: 2022-03-04 15:42:58 * @LastEditors: liziwei01 * @LastEditTime: 2022-03-21 17:41:26 * @Description: file content

* @Author: liziwei01 * @Date: 2022-03-20 18:17:39 * @LastEditors: liziwei01 * @LastEditTime: 2023-11-01 11:18:24 * @Description: file content

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Send(ctx context.Context, to, subject, body string) error
	// contains filtered or unexported methods
}

func GetClient

func GetClient(ctx context.Context, serviceName string) (Client, error)

*

  • @description:
  • @param {context.Context} ctx
  • @param {string} serviceName
  • @return {*}

func New

func New(config *Config) Client

type Config

type Config struct {
	// Service的名字, 必选
	Name string

	// 资源定位: 手动配置 - 使用IP、端口
	Resource struct {
		Manual struct {
			Host string
			Port int
		}
	}

	Email struct {
		Address  string
		Password string
	}
}

Config 配置

Jump to

Keyboard shortcuts

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