plain

package
Version: v0.4.32 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: MIT Imports: 3 Imported by: 33

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mechanism

type Mechanism struct {
	Username string
	Password string
}

Mechanism implements the PLAIN mechanism and passes the credentials in clear text.

func (Mechanism) Name added in v0.3.1

func (Mechanism) Name() string

func (Mechanism) Next

func (m Mechanism) Next(ctx context.Context, challenge []byte) (bool, []byte, error)

func (Mechanism) Start

func (m Mechanism) Start(ctx context.Context) (sasl.StateMachine, []byte, error)

Source Files

Jump to

Keyboard shortcuts

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