shared

package
v4.4.1 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package shared contains docs fields that need to be shared across old and new component implementations, it needs to be separate from the parent package in order to avoid circular dependencies (for now).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SASLFieldSpec

func SASLFieldSpec() docs.FieldSpec

SASLFieldSpec returns specs for SASL fields.

Types

type ErrSASLMechanismNotSupported

type ErrSASLMechanismNotSupported string

ErrSASLMechanismNotSupported is returned if a SASL mechanism was not recognized.

func (ErrSASLMechanismNotSupported) Error

Error implements the standard error interface.

type SASLConfig

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

SASLConfig contains configuration for SASL based authentication.

func NewSASLConfig

func NewSASLConfig() SASLConfig

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

func (SASLConfig) ToOptFns

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

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

Jump to

Keyboard shortcuts

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