postman

package
v1.0.35 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Default = StdConfig("default").Build()
)
View Source
var (
	NewEmail = email.NewEmail
)

Functions

This section is empty.

Types

type Attachment

type Attachment = email.Attachment

type Config

type Config struct {
	SSL      bool          `config:"ssl"`
	Timeout  time.Duration `config:"timeout"`
	Address  string        `config:"address"`
	PoolSize int           `config:"poolSize"`
	Identity string        `config:"identity"`
	Username string        `config:"username"`
	Password string        `config:"password"`
	Host     string        `config:"host"`
	From     string        `config:"from"`
	// contains filtered or unexported fields
}

Config 配置

func DefaultConfig

func DefaultConfig(key string) *Config

DefaultConfig 默认配置

func StdConfig

func StdConfig(key string, optionFunc ...OptionFunc) *Config

StdConfig 标准配置

func (*Config) Build

func (c *Config) Build() *PostMan

Build 构建实例

func (*Config) Path

func (c *Config) Path() string

Path 实例配置目录

type Email

type Email = email.Email

type OptionFunc

type OptionFunc func(*Config)

OptionFunc 选项信息

type PostMan

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

func (PostMan) Send

func (pm PostMan) Send(e *Email, t ...time.Duration) error

func (PostMan) Serve

func (pm PostMan) Serve(ctx context.Context) error

func (PostMan) Shutdown

func (pm PostMan) Shutdown(ctx context.Context) error

Jump to

Keyboard shortcuts

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