chain

package
v0.0.0-...-dc63708 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2015 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainDigits

type ChainDigits struct {
	// contains filtered or unexported fields
}

Permite Concatenar acciones alrededor del GetDigits Esto simula el GetDigits de *plivoframework* :) Ej: chain := NewChainDigits(call) chain.SetTimeout(10) chain.Play("mi audio").Play("Then other.wav").Reply() //get response

func NewChainDigits

func NewChainDigits(call *glivo.Call) *ChainDigits

func (*ChainDigits) CollectInput

func (digits *ChainDigits) CollectInput() (string, error)

Espera digitos, y colecion al final retonar toda la secuencia digitada

func (*ChainDigits) Do

func (digits *ChainDigits) Do()

Espera digitos, y colecion al final retonar toda la secuencia digitada

func (*ChainDigits) Play

func (digits *ChainDigits) Play(file string) *ChainDigits

Reproduce archivo local al servidor Freeswitch

func (*ChainDigits) Question

func (digits *ChainDigits) Question(question string) (bool, error)

Espera que se responda con los digitos indicados y retorna si o no

func (*ChainDigits) SetDigitTimeout

func (digits *ChainDigits) SetDigitTimeout(t uint16)

func (*ChainDigits) SetFinishOnKey

func (digits *ChainDigits) SetFinishOnKey(k uint8)

func (*ChainDigits) SetInvalidDigitsSound

func (digits *ChainDigits) SetInvalidDigitsSound(s string)

func (*ChainDigits) SetNumDigits

func (digits *ChainDigits) SetNumDigits(n int)

func (*ChainDigits) SetPlayBeep

func (digits *ChainDigits) SetPlayBeep(b bool)

func (*ChainDigits) SetRetries

func (digits *ChainDigits) SetRetries(n uint8)

func (*ChainDigits) SetTimeout

func (digits *ChainDigits) SetTimeout(t uint16)

func (*ChainDigits) SetValidDigits

func (digits *ChainDigits) SetValidDigits(s string)

func (*ChainDigits) Speak

func (digits *ChainDigits) Speak(phrase string) *ChainDigits

func (*ChainDigits) Wait

func (digits *ChainDigits) Wait(seconds int) *ChainDigits

type ChainableDigits

type ChainableDigits interface {
	Play(files string) ChainDigits
	Speak(phrase string) ChainDigits
	Wait(seconds int) ChainDigits
}

type CommandChainable

type CommandChainable struct {
	// contains filtered or unexported fields
}

type RunnerChainable

type RunnerChainable interface {
	Reply() (string, error)
}

Jump to

Keyboard shortcuts

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