Documentation
¶
Index ¶
- Constants
- type Config
- type Metrics
- type Telegram
- func (t *Telegram) GetConfig() *Config
- func (t *Telegram) GetName() string
- func (t *Telegram) GetType() string
- func (t *Telegram) Publish(ctx context.Context, e event.Event) error
- func (t *Telegram) Start(ctx context.Context) error
- func (t *Telegram) Stop(ctx context.Context) error
- func (t *Telegram) WithClient(client botClient) *Telegram
Constants ¶
View Source
const SourceType = "telegram"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
func GetMetricsInstance ¶
func (Metrics) IncMessagesPublished ¶
type Telegram ¶
type Telegram struct {
// contains filtered or unexported fields
}
func NewTelegram ¶
func NewTelegramWithClient ¶
func (*Telegram) WithClient ¶
Click to show internal directories.
Click to hide internal directories.