adapters

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TelegramConfig

type TelegramConfig struct {
	ChatID string `mapstructure:"chatID" json:"chatID"`
	Token  string `mapstructure:"token" json:"token"`
}

type TelegramNotifier

type TelegramNotifier struct {
	TelegramConfig
}

func NewTelegramNotifier

func NewTelegramNotifier(config TelegramConfig) *TelegramNotifier

func (TelegramNotifier) Notify

func (t TelegramNotifier) Notify(message string) error

Jump to

Keyboard shortcuts

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