sasl

package
v3.46.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FieldSpec

func FieldSpec() docs.FieldSpec

FieldSpec returns specs for SASL fields.

Types

type Config

type Config struct {
	Mechanism string `json:"mechanism" yaml:"mechanism"`
	User      string `json:"user" yaml:"user"`
	Password  string `json:"password" yaml:"password"`
}

Config contains configuration for SASL based authentication.

func NewConfig

func NewConfig() Config

NewConfig returns a new SASL config for AMQP with default values.

func (Config) ToOptFns

func (s Config) ToOptFns() ([]amqp.ConnOption, error)

ToOptFns renders the sasl.Config options into amqp.ConnOption fns.

type ErrMechanismNotSupported

type ErrMechanismNotSupported string

ErrMechanismNotSupported is returned if a SASL mechanism was not recognized.

func (ErrMechanismNotSupported) Error

func (e ErrMechanismNotSupported) Error() string

Error implements the standard error interface.

Jump to

Keyboard shortcuts

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