Documentation
¶
Index ¶
- type SendNotificationPlugin
- func (p *SendNotificationPlugin) Handle(ctx context.Context, dev device.Sender, pkt *protocol.Packet) error
- func (p *SendNotificationPlugin) IncomingTypes() []string
- func (p *SendNotificationPlugin) Name() string
- func (p *SendNotificationPlugin) OnConnect(dev device.Sender)
- func (p *SendNotificationPlugin) OnDisconnect(dev device.Sender)
- func (p *SendNotificationPlugin) OutgoingTypes() []string
- func (p *SendNotificationPlugin) Timeout() time.Duration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SendNotificationPlugin ¶
type SendNotificationPlugin struct {
// contains filtered or unexported fields
}
SendNotificationPlugin forwards desktop notifications to the phone. TODO: Re-implement notification monitoring without godbus (e.g. via gdbus monitor or dbus-monitor). The previous implementation was removed to eliminate the godbus dependency as part of the MPRIS migration.
func NewSendNotificationPlugin ¶
func NewSendNotificationPlugin(logger *zap.Logger, devices *device.Registry) *SendNotificationPlugin
func (*SendNotificationPlugin) IncomingTypes ¶
func (p *SendNotificationPlugin) IncomingTypes() []string
func (*SendNotificationPlugin) Name ¶
func (p *SendNotificationPlugin) Name() string
func (*SendNotificationPlugin) OnConnect ¶
func (p *SendNotificationPlugin) OnConnect(dev device.Sender)
func (*SendNotificationPlugin) OnDisconnect ¶
func (p *SendNotificationPlugin) OnDisconnect(dev device.Sender)
func (*SendNotificationPlugin) OutgoingTypes ¶
func (p *SendNotificationPlugin) OutgoingTypes() []string
func (*SendNotificationPlugin) Timeout ¶
func (p *SendNotificationPlugin) Timeout() time.Duration
Click to show internal directories.
Click to hide internal directories.