Versions in this module Expand all Collapse all v5 v5.2.1 Jul 13, 2022 Changes in this version + var DefaultMaximumDuration = 24 * time.Hour + var DefaultMaximumSilence = 5 * time.Minute + var Logger = log15.New() + var RecordingStartTimeout = 1 * time.Second + var ShutdownGracePeriod = 3 * time.Second + type OptionFunc func(*Options) + func Beep() OptionFunc + func Format(format string) OptionFunc + func IfExists(action string) OptionFunc + func MaxDuration(max time.Duration) OptionFunc + func MaxSilence(max time.Duration) OptionFunc + func Name(name string) OptionFunc + func TerminateOn(dtmf string) OptionFunc + type Options struct + func (o *Options) Apply(opts ...OptionFunc) + type Result struct + DTMF string + Data *ari.LiveRecordingData + Duration time.Duration + Error error + Hangup bool + func (r *Result) Delete() error + func (r *Result) Key() *ari.Key + func (r *Result) Save(name string) error + func (r *Result) URI() string + type Session interface + Done func() <-chan struct{} + Err func() error + Key func() *ari.Key + Pause func() error + Result func() (*Result, error) + Resume func() error + Scrap func() error + Stop func() *Result + func Record(ctx context.Context, r ari.Recorder, opts ...OptionFunc) Session Other modules containing this package github.com/gimatov/ari