shared

package
v4.15.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: MIT Imports: 2 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.

Jump to

Keyboard shortcuts

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