Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("not found")
ErrNotFound represents a not found error.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context interface { // Store represents a SASL mechanism store. Store // Mechanism returns the mechanism. Mechanism() Mechanism // Next returns the next response. Next(...Parameter) (Response, error) // Step returns the current step number. The step number is incremented by one after each call to Next. Step() int // Done returns true if the context is completed. Done() bool // Dispose disposes the context. Dispose() error }
Context represents a SASL mechanism context.
type IterationCount ¶ added in v1.2.0
type IterationCount int
IterationCount represents an iteration count.
type Mechanism ¶
type Mechanism interface { // Name returns the mechanism name. Name() string // Type returns the mechanism type. Type() Type // SetOptions sets the mechanism options before starting. SetOptions(...Option) error // Start returns the initial context. Start(...Option) (Context, error) }
Mechanism represents a SASL mechanism.
type RandomSequence ¶ added in v1.2.0
type RandomSequence string
RandomSequence represents a random sequence.
type Response ¶
type Response interface { // Bytes returns the response bytes. Bytes() []byte // String returns the response as a string. String() string }
Response represents a SASL mechanism response.
type Store ¶ added in v1.2.0
type Store interface { // SetValue sets the context value. SetValue(key string, value any) // Value returns the context value. Value(key string) (any, bool) // ValueTo returns the context value as a specific type. ValueTo(key string, v any) bool }
Store represents a SASL mechanism store.
Click to show internal directories.
Click to hide internal directories.