tmpemail

package module
v0.0.0-...-d43b779 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2022 License: MIT Imports: 12 Imported by: 0

README

post-shift-client

Автоматизация процесса создания временной почты. Пример смотрите в example

Поддерживаются сервисы post-shift.ru и 1secmail.com

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ITmpEmail

type ITmpEmail interface {
	NewRegistration() error
}

type OneSecmail

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

func (*OneSecmail) Create

func (t *OneSecmail) Create(conf *TmpEmailConf) ITmpEmail

func (*OneSecmail) NewRegistration

func (t *OneSecmail) NewRegistration() error

type PostShift

type PostShift struct {
	TmpEmailConf
	// contains filtered or unexported fields
}

func (*PostShift) Create

func (t *PostShift) Create(conf *TmpEmailConf) ITmpEmail

func (*PostShift) DeleteAllEmail

func (t *PostShift) DeleteAllEmail()

func (*PostShift) NewRegistration

func (t *PostShift) NewRegistration() error

type Proxy

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

type Result

type Result struct {
	Email string
	Error error
}

type TmpEmailConf

type TmpEmailConf struct {
	// канал для результата
	Result chan *Result
	// Таймаут в течение которого будет ожидаться письмо с подтверждением
	Timeout time.Duration
	// функция для обработки входящих сообщений
	Activation func(from, body string) bool
	// Прокси
	Proxy *Proxy
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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