Documentation
¶
Index ¶
- type TelephonyBody
- type TelephonyPlugin
- func (p *TelephonyPlugin) Handle(ctx context.Context, dev device.Sender, pkt *protocol.Packet) error
- func (p *TelephonyPlugin) IncomingTypes() []string
- func (p *TelephonyPlugin) Mute(dev device.Sender) error
- func (p *TelephonyPlugin) Name() string
- func (p *TelephonyPlugin) OnConnect(dev device.Sender)
- func (p *TelephonyPlugin) OnDisconnect(dev device.Sender)
- func (p *TelephonyPlugin) OutgoingTypes() []string
- func (p *TelephonyPlugin) Timeout() time.Duration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TelephonyBody ¶
type TelephonyPlugin ¶
type TelephonyPlugin struct {
// contains filtered or unexported fields
}
func NewTelephonyPlugin ¶
func NewTelephonyPlugin(bus *events.Bus) *TelephonyPlugin
func (*TelephonyPlugin) IncomingTypes ¶
func (p *TelephonyPlugin) IncomingTypes() []string
func (*TelephonyPlugin) Mute ¶
func (p *TelephonyPlugin) Mute(dev device.Sender) error
Mute sends a mute request to the remote device to silence an incoming call.
func (*TelephonyPlugin) Name ¶
func (p *TelephonyPlugin) Name() string
func (*TelephonyPlugin) OnConnect ¶
func (p *TelephonyPlugin) OnConnect(dev device.Sender)
func (*TelephonyPlugin) OnDisconnect ¶
func (p *TelephonyPlugin) OnDisconnect(dev device.Sender)
func (*TelephonyPlugin) OutgoingTypes ¶
func (p *TelephonyPlugin) OutgoingTypes() []string
func (*TelephonyPlugin) Timeout ¶
func (p *TelephonyPlugin) Timeout() time.Duration
Click to show internal directories.
Click to hide internal directories.