package
3.0.16+incompatible
Repository: https://github.com/mtryfoss/ari.git
Documentation: pkg.go.dev

# Functions

MatchAny is a MatchFunc which returns Complete if the pattern contains any characters.
MatchHash is a MatchFunc which returns Complete if the pattern contains a hash (#) character and Incomplete, otherwise.
MatchLenFunc returns a MatchFunc which returns Complete if the given number of digits are received and Incomplete otherwise.
MatchLenOrTerminatorFunc returns a MatchFunc which returns Complete if the given number of digits are received or the given terminal string is received.
MatchSetFunc returns a MatchFunc which will match any digit in the provided set of digits.
MatchTerminatorFunc is a MatchFunc which returns Complete if the pattern contains the character and Incomplete, otherwise.
Prompt plays the given sound and waits for user input.

# Constants

Canceled indicates that matching was canceled.
Complete means that a match was found from the digits received.
Failed indicates that matching could not be completed due to a failure (usually an error).
Hangup indicates that a match could not be made due to the channel being hung up.
Incomplete indicates that there are not enough digits to determine a match.
Invalid indicates that a match cannot be found from the digits received.
Timeout indicates that the matching failed due to timeout.

# Variables

DefaultFirstDigitTimeout is the maximum time to wait for the first digit after a prompt, if not otherwise set.
DefaultInterDigitTimeout is the maximum time to wait for additional digits after the first is received.
DefaultOverallTimeout is the maximum time to wait for a response regardless of the number of received digits or pattern matching.
Logger defaults to a discard handler (null output).

# Structs

Options describes options for the prompt.
Result describes the result of a prompt operation.

# Type aliases

Status indicates the status of the prompt operation.