auth

package
v0.0.0-...-73ebec1 Latest Latest
Warning

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

Go to latest
Published: May 10, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthLogin

func AuthLogin(username string, password string) smtp.Auth

AuthLogin returns Auth implementation that performs AUTH LOGIN

Types

type GoogleAccountAuth

type GoogleAccountAuth struct {
	Username string
	Password string
}

GoogleAccountAuth represents data required for AUTH LOGIN

func (*GoogleAccountAuth) Next

func (g *GoogleAccountAuth) Next(fromServer []byte, more bool) ([]byte, error)

Next implements smtp.Auth.Next

func (*GoogleAccountAuth) Start

func (g *GoogleAccountAuth) Start(server *smtp.ServerInfo) (string, []byte, error)

Start implements smtp.Auth.Start

Jump to

Keyboard shortcuts

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