messaging

package
v0.0.0-...-a662f2c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 15, 2023 License: Unlicense Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	Content string
}

type Sender

type Sender interface {
	Send(m Message, event *model.HassEvent) error
}

type StatusLedSender

type StatusLedSender struct {
	Entity model.HassEntity `mapstructure:"entity" json:"entity"`
}

func (*StatusLedSender) Send

func (t *StatusLedSender) Send(_ Message, event *model.HassEvent) error

Send sends a message via a LED

type TelegramSender

type TelegramSender struct {
	Token  string `mapstructure:"token" json:"token"`
	ChatID int64  `mapstructure:"chat_id" json:"chat_id"`
}

func (*TelegramSender) Send

func (t *TelegramSender) Send(m Message, _ *model.HassEvent) error

Send sends a message to Telegram

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL