Documentation ¶
Index ¶
- type Application
- func (_m *Application) Data(key *ari.Key) (*ari.ApplicationData, error)
- func (_m *Application) Get(key *ari.Key) *ari.ApplicationHandle
- func (_m *Application) List(_a0 *ari.Key) ([]*ari.Key, error)
- func (_m *Application) Subscribe(key *ari.Key, eventSource string) error
- func (_m *Application) Unsubscribe(key *ari.Key, eventSource string) error
- type Asterisk
- type AsteriskVariables
- type Bridge
- func (_m *Bridge) AddChannel(key *ari.Key, channelID string) error
- func (_m *Bridge) AddChannelWithOptions(key *ari.Key, channelID string, options *ari.BridgeAddChannelOptions) error
- func (_m *Bridge) Create(key *ari.Key, btype string, name string) (*ari.BridgeHandle, error)
- func (_m *Bridge) Data(key *ari.Key) (*ari.BridgeData, error)
- func (_m *Bridge) Delete(key *ari.Key) error
- func (_m *Bridge) Get(key *ari.Key) *ari.BridgeHandle
- func (_m *Bridge) List(_a0 *ari.Key) ([]*ari.Key, error)
- func (_m *Bridge) MOH(key *ari.Key, moh string) error
- func (_m *Bridge) Play(key *ari.Key, playbackID string, mediaURI string) (*ari.PlaybackHandle, error)
- func (_m *Bridge) Record(key *ari.Key, name string, opts *ari.RecordingOptions) (*ari.LiveRecordingHandle, error)
- func (_m *Bridge) RemoveChannel(key *ari.Key, channelID string) error
- func (_m *Bridge) StageCreate(key *ari.Key, btype string, name string) (*ari.BridgeHandle, error)
- func (_m *Bridge) StagePlay(key *ari.Key, playbackID string, mediaURI string) (*ari.PlaybackHandle, error)
- func (_m *Bridge) StageRecord(key *ari.Key, name string, opts *ari.RecordingOptions) (*ari.LiveRecordingHandle, error)
- func (_m *Bridge) StopMOH(key *ari.Key) error
- func (_m *Bridge) Subscribe(key *ari.Key, n ...string) ari.Subscription
- type Bus
- type Channel
- func (_m *Channel) Answer(key *ari.Key) error
- func (_m *Channel) Busy(key *ari.Key) error
- func (_m *Channel) Congestion(key *ari.Key) error
- func (_m *Channel) Continue(key *ari.Key, context string, extension string, priority int) error
- func (_m *Channel) Create(_a0 *ari.Key, _a1 ari.ChannelCreateRequest) (*ari.ChannelHandle, error)
- func (_m *Channel) Data(key *ari.Key) (*ari.ChannelData, error)
- func (_m *Channel) Dial(key *ari.Key, caller string, timeout time.Duration) error
- func (_m *Channel) Get(key *ari.Key) *ari.ChannelHandle
- func (_m *Channel) GetVariable(_a0 *ari.Key, _a1 string) (string, error)
- func (_m *Channel) Hangup(key *ari.Key, reason string) error
- func (_m *Channel) Hold(key *ari.Key) error
- func (_m *Channel) List(_a0 *ari.Key) ([]*ari.Key, error)
- func (_m *Channel) MOH(key *ari.Key, moh string) error
- func (_m *Channel) Mute(key *ari.Key, dir ari.Direction) error
- func (_m *Channel) Originate(_a0 *ari.Key, _a1 ari.OriginateRequest) (*ari.ChannelHandle, error)
- func (_m *Channel) Play(key *ari.Key, playbackID string, mediaURI string) (*ari.PlaybackHandle, error)
- func (_m *Channel) Record(key *ari.Key, name string, opts *ari.RecordingOptions) (*ari.LiveRecordingHandle, error)
- func (_m *Channel) Ring(key *ari.Key) error
- func (_m *Channel) SendDTMF(key *ari.Key, dtmf string, opts *ari.DTMFOptions) error
- func (_m *Channel) SetVariable(key *ari.Key, name string, value string) error
- func (_m *Channel) Silence(key *ari.Key) error
- func (_m *Channel) Snoop(key *ari.Key, snoopID string, opts *ari.SnoopOptions) (*ari.ChannelHandle, error)
- func (_m *Channel) StageOriginate(_a0 *ari.Key, _a1 ari.OriginateRequest) (*ari.ChannelHandle, error)
- func (_m *Channel) StagePlay(key *ari.Key, playbackID string, mediaURI string) (*ari.PlaybackHandle, error)
- func (_m *Channel) StageRecord(key *ari.Key, name string, opts *ari.RecordingOptions) (*ari.LiveRecordingHandle, error)
- func (_m *Channel) StageSnoop(key *ari.Key, snoopID string, opts *ari.SnoopOptions) (*ari.ChannelHandle, error)
- func (_m *Channel) StopHold(key *ari.Key) error
- func (_m *Channel) StopMOH(key *ari.Key) error
- func (_m *Channel) StopRing(key *ari.Key) error
- func (_m *Channel) StopSilence(key *ari.Key) error
- func (_m *Channel) Subscribe(key *ari.Key, n ...string) ari.Subscription
- func (_m *Channel) Unmute(key *ari.Key, dir ari.Direction) error
- type Client
- func (_m *Client) Application() ari.Application
- func (_m *Client) ApplicationName() string
- func (_m *Client) Asterisk() ari.Asterisk
- func (_m *Client) Bridge() ari.Bridge
- func (_m *Client) Bus() ari.Bus
- func (_m *Client) Channel() ari.Channel
- func (_m *Client) Close()
- func (_m *Client) DeviceState() ari.DeviceState
- func (_m *Client) Endpoint() ari.Endpoint
- func (_m *Client) LiveRecording() ari.LiveRecording
- func (_m *Client) Mailbox() ari.Mailbox
- func (_m *Client) Playback() ari.Playback
- func (_m *Client) Sound() ari.Sound
- func (_m *Client) StoredRecording() ari.StoredRecording
- func (_m *Client) TextMessage() ari.TextMessage
- type Config
- type DTMFSender
- type DeviceState
- func (_m *DeviceState) Data(key *ari.Key) (*ari.DeviceStateData, error)
- func (_m *DeviceState) Delete(key *ari.Key) error
- func (_m *DeviceState) Get(key *ari.Key) *ari.DeviceStateHandle
- func (_m *DeviceState) List(filter *ari.Key) ([]*ari.Key, error)
- func (_m *DeviceState) Update(key *ari.Key, state string) error
- type Endpoint
- type Event
- type LiveRecording
- func (_m *LiveRecording) Data(key *ari.Key) (*ari.LiveRecordingData, error)
- func (_m *LiveRecording) Get(key *ari.Key) *ari.LiveRecordingHandle
- func (_m *LiveRecording) Mute(key *ari.Key) error
- func (_m *LiveRecording) Pause(key *ari.Key) error
- func (_m *LiveRecording) Resume(key *ari.Key) error
- func (_m *LiveRecording) Scrap(key *ari.Key) error
- func (_m *LiveRecording) Stop(key *ari.Key) error
- func (_m *LiveRecording) Stored(key *ari.Key) *ari.StoredRecordingHandle
- func (_m *LiveRecording) Subscribe(key *ari.Key, n ...string) ari.Subscription
- func (_m *LiveRecording) Unmute(key *ari.Key) error
- type Logging
- func (_m *Logging) Create(key *ari.Key, levels string) (*ari.LogHandle, error)
- func (_m *Logging) Data(key *ari.Key) (*ari.LogData, error)
- func (_m *Logging) Delete(key *ari.Key) error
- func (_m *Logging) Get(key *ari.Key) *ari.LogHandle
- func (_m *Logging) List(filter *ari.Key) ([]*ari.Key, error)
- func (_m *Logging) Rotate(key *ari.Key) error
- type Mailbox
- func (_m *Mailbox) Data(key *ari.Key) (*ari.MailboxData, error)
- func (_m *Mailbox) Delete(key *ari.Key) error
- func (_m *Mailbox) Get(key *ari.Key) *ari.MailboxHandle
- func (_m *Mailbox) List(filter *ari.Key) ([]*ari.Key, error)
- func (_m *Mailbox) Update(key *ari.Key, oldMessages int, newMessages int) error
- type Matcher
- type Modules
- func (_m *Modules) Data(key *ari.Key) (*ari.ModuleData, error)
- func (_m *Modules) Get(key *ari.Key) *ari.ModuleHandle
- func (_m *Modules) List(filter *ari.Key) ([]*ari.Key, error)
- func (_m *Modules) Load(key *ari.Key) error
- func (_m *Modules) Reload(key *ari.Key) error
- func (_m *Modules) Unload(key *ari.Key) error
- type Playback
- func (_m *Playback) Control(key *ari.Key, op string) error
- func (_m *Playback) Data(key *ari.Key) (*ari.PlaybackData, error)
- func (_m *Playback) Get(key *ari.Key) *ari.PlaybackHandle
- func (_m *Playback) Stop(key *ari.Key) error
- func (_m *Playback) Subscribe(key *ari.Key, n ...string) ari.Subscription
- type Player
- type Recorder
- type Sender
- type Sound
- type StoredRecording
- func (_m *StoredRecording) Copy(key *ari.Key, dest string) (*ari.StoredRecordingHandle, error)
- func (_m *StoredRecording) Data(key *ari.Key) (*ari.StoredRecordingData, error)
- func (_m *StoredRecording) Delete(key *ari.Key) error
- func (_m *StoredRecording) Get(key *ari.Key) *ari.StoredRecordingHandle
- func (_m *StoredRecording) List(filter *ari.Key) ([]*ari.Key, error)
- type Subscriber
- type Subscription
- type TextMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
Application is an autogenerated mock type for the Application type
func (*Application) Data ¶
func (_m *Application) Data(key *ari.Key) (*ari.ApplicationData, error)
Data provides a mock function with given fields: key
func (*Application) Get ¶
func (_m *Application) Get(key *ari.Key) *ari.ApplicationHandle
Get provides a mock function with given fields: key
func (*Application) Subscribe ¶
func (_m *Application) Subscribe(key *ari.Key, eventSource string) error
Subscribe provides a mock function with given fields: key, eventSource
func (*Application) Unsubscribe ¶
func (_m *Application) Unsubscribe(key *ari.Key, eventSource string) error
Unsubscribe provides a mock function with given fields: key, eventSource
type Asterisk ¶
Asterisk is an autogenerated mock type for the Asterisk type
func (*Asterisk) Variables ¶
func (_m *Asterisk) Variables() ari.AsteriskVariables
Variables provides a mock function with given fields:
type AsteriskVariables ¶
AsteriskVariables is an autogenerated mock type for the AsteriskVariables type
type Bridge ¶
Bridge is an autogenerated mock type for the Bridge type
func (*Bridge) AddChannel ¶
AddChannel provides a mock function with given fields: key, channelID
func (*Bridge) AddChannelWithOptions ¶
func (_m *Bridge) AddChannelWithOptions(key *ari.Key, channelID string, options *ari.BridgeAddChannelOptions) error
AddChannelWithOptions provides a mock function with given fields: key, channelID, options
func (*Bridge) Get ¶
func (_m *Bridge) Get(key *ari.Key) *ari.BridgeHandle
Get provides a mock function with given fields: key
func (*Bridge) Play ¶
func (_m *Bridge) Play(key *ari.Key, playbackID string, mediaURI string) (*ari.PlaybackHandle, error)
Play provides a mock function with given fields: key, playbackID, mediaURI
func (*Bridge) Record ¶
func (_m *Bridge) Record(key *ari.Key, name string, opts *ari.RecordingOptions) (*ari.LiveRecordingHandle, error)
Record provides a mock function with given fields: key, name, opts
func (*Bridge) RemoveChannel ¶
RemoveChannel provides a mock function with given fields: key, channelID
func (*Bridge) StageCreate ¶
StageCreate provides a mock function with given fields: key, btype, name
func (*Bridge) StagePlay ¶
func (_m *Bridge) StagePlay(key *ari.Key, playbackID string, mediaURI string) (*ari.PlaybackHandle, error)
StagePlay provides a mock function with given fields: key, playbackID, mediaURI
func (*Bridge) StageRecord ¶
func (_m *Bridge) StageRecord(key *ari.Key, name string, opts *ari.RecordingOptions) (*ari.LiveRecordingHandle, error)
StageRecord provides a mock function with given fields: key, name, opts
type Bus ¶
Bus is an autogenerated mock type for the Bus type
type Channel ¶
Channel is an autogenerated mock type for the Channel type
func (*Channel) Congestion ¶
Congestion provides a mock function with given fields: key
func (*Channel) Continue ¶
Continue provides a mock function with given fields: key, context, extension, priority
func (*Channel) Create ¶
func (_m *Channel) Create(_a0 *ari.Key, _a1 ari.ChannelCreateRequest) (*ari.ChannelHandle, error)
Create provides a mock function with given fields: _a0, _a1
func (*Channel) Get ¶
func (_m *Channel) Get(key *ari.Key) *ari.ChannelHandle
Get provides a mock function with given fields: key
func (*Channel) GetVariable ¶
GetVariable provides a mock function with given fields: _a0, _a1
func (*Channel) Originate ¶
func (_m *Channel) Originate(_a0 *ari.Key, _a1 ari.OriginateRequest) (*ari.ChannelHandle, error)
Originate provides a mock function with given fields: _a0, _a1
func (*Channel) Play ¶
func (_m *Channel) Play(key *ari.Key, playbackID string, mediaURI string) (*ari.PlaybackHandle, error)
Play provides a mock function with given fields: key, playbackID, mediaURI
func (*Channel) Record ¶
func (_m *Channel) Record(key *ari.Key, name string, opts *ari.RecordingOptions) (*ari.LiveRecordingHandle, error)
Record provides a mock function with given fields: key, name, opts
func (*Channel) SetVariable ¶
SetVariable provides a mock function with given fields: key, name, value
func (*Channel) Snoop ¶
func (_m *Channel) Snoop(key *ari.Key, snoopID string, opts *ari.SnoopOptions) (*ari.ChannelHandle, error)
Snoop provides a mock function with given fields: key, snoopID, opts
func (*Channel) StageOriginate ¶
func (_m *Channel) StageOriginate(_a0 *ari.Key, _a1 ari.OriginateRequest) (*ari.ChannelHandle, error)
StageOriginate provides a mock function with given fields: _a0, _a1
func (*Channel) StagePlay ¶
func (_m *Channel) StagePlay(key *ari.Key, playbackID string, mediaURI string) (*ari.PlaybackHandle, error)
StagePlay provides a mock function with given fields: key, playbackID, mediaURI
func (*Channel) StageRecord ¶
func (_m *Channel) StageRecord(key *ari.Key, name string, opts *ari.RecordingOptions) (*ari.LiveRecordingHandle, error)
StageRecord provides a mock function with given fields: key, name, opts
func (*Channel) StageSnoop ¶
func (_m *Channel) StageSnoop(key *ari.Key, snoopID string, opts *ari.SnoopOptions) (*ari.ChannelHandle, error)
StageSnoop provides a mock function with given fields: key, snoopID, opts
func (*Channel) StopSilence ¶
StopSilence provides a mock function with given fields: key
type Client ¶
Client is an autogenerated mock type for the Client type
func (*Client) Application ¶
func (_m *Client) Application() ari.Application
Application provides a mock function with given fields:
func (*Client) ApplicationName ¶
ApplicationName provides a mock function with given fields:
func (*Client) DeviceState ¶
func (_m *Client) DeviceState() ari.DeviceState
DeviceState provides a mock function with given fields:
func (*Client) LiveRecording ¶
func (_m *Client) LiveRecording() ari.LiveRecording
LiveRecording provides a mock function with given fields:
func (*Client) StoredRecording ¶
func (_m *Client) StoredRecording() ari.StoredRecording
StoredRecording provides a mock function with given fields:
func (*Client) TextMessage ¶
func (_m *Client) TextMessage() ari.TextMessage
TextMessage provides a mock function with given fields:
type Config ¶
Config is an autogenerated mock type for the Config type
type DTMFSender ¶
DTMFSender is an autogenerated mock type for the DTMFSender type
func (*DTMFSender) SendDTMF ¶
func (_m *DTMFSender) SendDTMF(dtmf string, opts *ari.DTMFOptions)
SendDTMF provides a mock function with given fields: dtmf, opts
type DeviceState ¶
DeviceState is an autogenerated mock type for the DeviceState type
func (*DeviceState) Data ¶
func (_m *DeviceState) Data(key *ari.Key) (*ari.DeviceStateData, error)
Data provides a mock function with given fields: key
func (*DeviceState) Delete ¶
func (_m *DeviceState) Delete(key *ari.Key) error
Delete provides a mock function with given fields: key
func (*DeviceState) Get ¶
func (_m *DeviceState) Get(key *ari.Key) *ari.DeviceStateHandle
Get provides a mock function with given fields: key
type Endpoint ¶
Endpoint is an autogenerated mock type for the Endpoint type
func (*Endpoint) Get ¶
func (_m *Endpoint) Get(key *ari.Key) *ari.EndpointHandle
Get provides a mock function with given fields: key
type Event ¶
Event is an autogenerated mock type for the Event type
func (*Event) GetApplication ¶
GetApplication provides a mock function with given fields:
type LiveRecording ¶
LiveRecording is an autogenerated mock type for the LiveRecording type
func (*LiveRecording) Data ¶
func (_m *LiveRecording) Data(key *ari.Key) (*ari.LiveRecordingData, error)
Data provides a mock function with given fields: key
func (*LiveRecording) Get ¶
func (_m *LiveRecording) Get(key *ari.Key) *ari.LiveRecordingHandle
Get provides a mock function with given fields: key
func (*LiveRecording) Mute ¶
func (_m *LiveRecording) Mute(key *ari.Key) error
Mute provides a mock function with given fields: key
func (*LiveRecording) Pause ¶
func (_m *LiveRecording) Pause(key *ari.Key) error
Pause provides a mock function with given fields: key
func (*LiveRecording) Resume ¶
func (_m *LiveRecording) Resume(key *ari.Key) error
Resume provides a mock function with given fields: key
func (*LiveRecording) Scrap ¶
func (_m *LiveRecording) Scrap(key *ari.Key) error
Scrap provides a mock function with given fields: key
func (*LiveRecording) Stop ¶
func (_m *LiveRecording) Stop(key *ari.Key) error
Stop provides a mock function with given fields: key
func (*LiveRecording) Stored ¶
func (_m *LiveRecording) Stored(key *ari.Key) *ari.StoredRecordingHandle
Stored provides a mock function with given fields: key
func (*LiveRecording) Subscribe ¶
func (_m *LiveRecording) Subscribe(key *ari.Key, n ...string) ari.Subscription
Subscribe provides a mock function with given fields: key, n
type Logging ¶
Logging is an autogenerated mock type for the Logging type
type Mailbox ¶
Mailbox is an autogenerated mock type for the Mailbox type
func (*Mailbox) Get ¶
func (_m *Mailbox) Get(key *ari.Key) *ari.MailboxHandle
Get provides a mock function with given fields: key
type Modules ¶
Modules is an autogenerated mock type for the Modules type
func (*Modules) Get ¶
func (_m *Modules) Get(key *ari.Key) *ari.ModuleHandle
Get provides a mock function with given fields: key
type Playback ¶
Playback is an autogenerated mock type for the Playback type
func (*Playback) Get ¶
func (_m *Playback) Get(key *ari.Key) *ari.PlaybackHandle
Get provides a mock function with given fields: key
type Player ¶
Player is an autogenerated mock type for the Player type
type Recorder ¶
Recorder is an autogenerated mock type for the Recorder type
func (*Recorder) Record ¶
func (_m *Recorder) Record(_a0 string, _a1 *ari.RecordingOptions) (*ari.LiveRecordingHandle, error)
Record provides a mock function with given fields: _a0, _a1
func (*Recorder) StageRecord ¶
func (_m *Recorder) StageRecord(_a0 string, _a1 *ari.RecordingOptions) (*ari.LiveRecordingHandle, error)
StageRecord provides a mock function with given fields: _a0, _a1
type Sound ¶
Sound is an autogenerated mock type for the Sound type
type StoredRecording ¶
StoredRecording is an autogenerated mock type for the StoredRecording type
func (*StoredRecording) Copy ¶
func (_m *StoredRecording) Copy(key *ari.Key, dest string) (*ari.StoredRecordingHandle, error)
Copy provides a mock function with given fields: key, dest
func (*StoredRecording) Data ¶
func (_m *StoredRecording) Data(key *ari.Key) (*ari.StoredRecordingData, error)
Data provides a mock function with given fields: key
func (*StoredRecording) Delete ¶
func (_m *StoredRecording) Delete(key *ari.Key) error
Delete provides a mock function with given fields: key
func (*StoredRecording) Get ¶
func (_m *StoredRecording) Get(key *ari.Key) *ari.StoredRecordingHandle
Get provides a mock function with given fields: key
type Subscriber ¶
Subscriber is an autogenerated mock type for the Subscriber type
func (*Subscriber) Subscribe ¶
func (_m *Subscriber) Subscribe(key *ari.Key, n ...string) ari.Subscription
Subscribe provides a mock function with given fields: key, n
type Subscription ¶
Subscription is an autogenerated mock type for the Subscription type
func (*Subscription) Cancel ¶
func (_m *Subscription) Cancel()
Cancel provides a mock function with given fields:
func (*Subscription) Events ¶
func (_m *Subscription) Events() <-chan ari.Event
Events provides a mock function with given fields:
type TextMessage ¶
TextMessage is an autogenerated mock type for the TextMessage type
Source Files ¶
- Application.go
- Asterisk.go
- AsteriskVariables.go
- Bridge.go
- Bus.go
- Channel.go
- Client.go
- Config.go
- DTMFSender.go
- DeviceState.go
- Endpoint.go
- Event.go
- LiveRecording.go
- Logging.go
- Mailbox.go
- Matcher.go
- Modules.go
- Playback.go
- Player.go
- Recorder.go
- Sender.go
- Sound.go
- StoredRecording.go
- Subscriber.go
- Subscription.go
- TextMessage.go