Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrTGResponseNotOK = fmt.Errorf("telegram response not ok")
)
Functions ¶
This section is empty.
Types ¶
type ComputerShutDowner ¶
type ComputerShutDowner struct {
// contains filtered or unexported fields
}
func (*ComputerShutDowner) ShutDown ¶
func (s *ComputerShutDowner) ShutDown() error
type DesktopNotifier ¶
type DesktopNotifier struct {
IconPath string
}
Desktop Notifier
func (DesktopNotifier) Notify ¶
func (d DesktopNotifier) Notify(msg string) error
func (DesktopNotifier) String ¶
func (d DesktopNotifier) String() string
type ShutDowner ¶
type ShutDowner interface {
ShutDown() error
}
func NewComputerShutDowner ¶
func NewComputerShutDowner(Os string) ShutDowner
type TelegramBotNotifier ¶
type TelegramBotNotifier struct {
// contains filtered or unexported fields
}
TelegramBot Notifier
func (*TelegramBotNotifier) Notify ¶
func (tg *TelegramBotNotifier) Notify(msg string) error
func (*TelegramBotNotifier) String ¶
func (tg *TelegramBotNotifier) String() string
Click to show internal directories.
Click to hide internal directories.