Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsoleSender ¶
type ConsoleSender struct {
// contains filtered or unexported fields
}
func (*ConsoleSender) GetTimezone ¶ added in v0.0.3
func (s *ConsoleSender) GetTimezone() string
func (*ConsoleSender) Send ¶
func (c *ConsoleSender) Send(events []*Event) error
type Event ¶
type Event struct { Prefix string Log model.NukiSmartlockLogResponse ReservationName string Smartlock model.SmartlockResponse Json bool }
func (Event) IsLogEvent ¶ added in v0.0.2
func (Event) IsSmartlockEvent ¶ added in v0.0.2
type TelegramSender ¶
type TelegramSender struct { Token string `mapstructure:"token"` ChatID int64 `mapstructure:"chat_id"` // contains filtered or unexported fields }
func (*TelegramSender) FormatLogEvent ¶ added in v0.0.4
func (t *TelegramSender) FormatLogEvent(e *Event) (string, error)
func (*TelegramSender) GetTimezone ¶ added in v0.0.3
func (s *TelegramSender) GetTimezone() string
func (*TelegramSender) Send ¶
func (t *TelegramSender) Send(events []*Event) error
Click to show internal directories.
Click to hide internal directories.