Versions in this module Expand all Collapse all v1 v1.1.4 Mar 23, 2022 v1.1.3 Mar 23, 2022 Changes in this version type Client + Children []Markup + Identity string + StatusCallback string + StatusCallbackEvent string + StatusCallbackMethod string + func (c *Client) Add(ml ...Markup) type Conference + Coach string + RecordingStatusCallbackEvent string + Region string type Dial + AnswerOnBridge bool + RecordingStatusCallback string + RecordingStatusCallbackEvent string + RecordingStatusCallbackMethod string + RingTone string + Trim string + type Parameter struct + Name string + Value string + XMLName xml.Name + func (p Parameter) Type() string + func (p Parameter) Validate() error v1.1.0 Sep 8, 2019 Changes in this version + var ConferenceCallbackEvents = constructCallbackEventValidator([]string{ ... }) + var SipCallbackEvents = constructCallbackEventValidator([]string{ ... }) type Conference + ConferenceName string type Gather + Hints string + Input string + Language string + PartialResultCallback string + ProfanityFilter bool + SpeechTimeout int v1.0.0 Jun 17, 2017 Changes in this version + const Alice + const Busy + const Canceled + const ChineseCantonese + const ChineseMandarin + const ChineseTaiwanese + const Completed + const DanishDenmark + const DoNotTrim + const DutchNetherlands + const English + const EnglishAustralia + const EnglishCanada + const EnglishIndia + const EnglishUK + const EnglishUSA + const Failed + const FinishFinland + const French + const FrenchCanada + const FrenchFrance + const German + const GermanGermany + const InProgress + const Inbound + const ItalianItaly + const JapaneseJapan + const KoreanKorea + const Man + const NoAnswer + const NorwegianNorway + const OutboundAPI + const OutboundDial + const PolishPoland + const PortugueseBrazil + const PortuguesePortugal + const Queued + const Ringing + const RussianRussia + const Spanish + const SpanishCatalan + const SpanishMexico + const SpanishSpain + const SwedishSweden + const TrimSilence + const Woman + func AllowedCallbackEvent(events string) bool + func AllowedLanguage(speaker string, language string) bool + func AllowedMethod(field string) bool + func Bind(cbRequest interface{}, r *http.Request) error + func IntBetween(field int, high int, low int) bool + func Numeric(field string) bool + func NumericOpt(field string) bool + func NumericOrWait(field string) bool + func OneOf(field string, options ...string) bool + func OneOfOpt(field string, options ...string) bool + func Required(field string) bool + func Validate(vf ...bool) bool + type Client struct + Method string + Name string + URL string + XMLName xml.Name + func (c *Client) Type() string + func (c *Client) Validate() error + type Conference struct + Beep string + EndConferenceOnExit bool + EventCallbackURL string + MaxParticipants int + Muted bool + Record string + RecordingStatusCallback string + RecordingStatusCallbackMethod string + StartConferenceOnEnter bool + StatusCallback string + StatusCallbackEvent string + StatusCallbackMethod string + Trim string + WaitMethod string + WaitURL string + XMLName xml.Name + func (c *Conference) Type() string + func (c *Conference) Validate() error + type Dial struct + Action string + CallerID string + Children []Markup + HangupOnStar bool + Method string + Number string + Record bool + TimeLimit int + Timeout int + XMLName xml.Name + func (d *Dial) Add(ml ...Markup) + func (d *Dial) Type() string + func (d *Dial) Validate() error + type DialActionRequest struct + DequeueResult string + DequeuedCallDuration int + DequeuedCallQueueTime int + DequeuedCallSid string + DialCallDuration int + DialCallSid string + DialCallStatus string + QueueSid string + RecordingURL string + type Enqueue struct + Action string + Method string + QueueName string + WaitURL string + WaitURLMethod string + WorkflowSid string + XMLName xml.Name + func (e *Enqueue) Type() string + func (e *Enqueue) Validate() error + type Gather struct + Action string + Children []Markup + FinishOnKey string + Method string + NumDigits int + Timeout int + XMLName xml.Name + func (g *Gather) Add(ml ...Markup) + func (g *Gather) Type() string + func (g *Gather) Validate() error + type Hangup struct + XMLName xml.Name + func (h *Hangup) Type() string + func (h *Hangup) Validate() error + type Leave struct + XMLName xml.Name + func (l *Leave) Type() string + func (l *Leave) Validate() error + type Markup interface + Type func() string + Validate func() error + type Number struct + Method string + Number string + SendDigits string + URL string + XMLName xml.Name + func (n *Number) Type() string + func (n *Number) Validate() error + type Pause struct + Length int + XMLName xml.Name + func (p *Pause) Type() string + func (p *Pause) Validate() error + type Play struct + Digits string + Loop int + URL string + XMLName xml.Name + func (p *Play) Type() string + func (p *Play) Validate() error + type Queue struct + Method string + Name string + PostWorkActivitySid string + ReservationSid string + URL string + XMLName xml.Name + func (q *Queue) Type() string + func (q *Queue) Validate() error + type Record struct + Action string + FinishOnKey string + MaxLength int + Method string + PlayBeep bool + RecordingStatusCallback string + RecordingStatusCallbackMethod string + Timeout int + Transcribe bool + TranscribeCallback string + Trim string + XMLName xml.Name + func (r *Record) Type() string + func (r *Record) Validate() error + type RecordActionRequest struct + Digits string + RecordingDuration int + RecordingURL string + type RecordingStatusCallbackRequest struct + AccountSid string + CallSid string + RecordingChannels int + RecordingDuration int + RecordingSid string + RecordingSource string + RecordingStatus string + RecordingURL string + type Redirect struct + Method string + URL string + XMLName xml.Name + func (r *Redirect) Type() string + func (r *Redirect) Validate() error + type Reject struct + Reason string + XMLName xml.Name + func (r *Reject) Type() string + func (r *Reject) Validate() error + type Response struct + Children []Markup + IgnoreValidationErrors bool + XMLName xml.Name + func NewResponse() *Response + func (r *Response) Add(ml ...Markup) + func (r *Response) Encode() ([]byte, error) + func (r *Response) String() (string, error) + func (r *Response) Type() string + func (r *Response) Validate() error + type Say struct + Language string + Loop int + Text string + Voice string + XMLName xml.Name + func (s *Say) Type() string + func (s *Say) Validate() error + type Sip struct + Address string + Method string + Password string + StatusCallback string + StatusCallbackEvent string + StatusCallbackMethod string + URL string + Username string + XMLName xml.Name + func (s *Sip) Type() string + func (s *Sip) Validate() error + type Sms struct + Action string + From string + Method string + StatusCallback string + Text string + To string + XMLName xml.Name + func (s *Sms) Type() string + func (s *Sms) Validate() error + type TranscribeCallbackRequest struct + APIVersion string + AccountSid string + CallSid string + CallStatus string + Direction string + ForwardedFrom string + From string + RecordingSid string + RecordingURL string + To string + TranscriptionSid string + TranscriptionStatus string + TranscriptionText string + TranscriptionURL string + type ValidationError struct + Errors []error + func (v ValidationError) Error() string + type VoiceRequest struct + APIVersion string + AccountSid string + CallSid string + CallStatus string + CallerName string + Direction string + ForwardedFrom string + From string + FromCity string + FromCountry string + FromState string + FromZip string + To string + ToCity string + ToCountry string + ToState string + ToZip string