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

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