notifier

package
v0.0.0-...-03ce398 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NotifierContext

type NotifierContext struct {
	ChatId  types.ChatId
	Message types.Message
	Params  NotifierParams
}

type NotifierParams

type NotifierParams struct {
	Time string
}

type SystemNotifier

type SystemNotifier struct {
	// contains filtered or unexported fields
}

func NewSystemNotifier

func NewSystemNotifier() *SystemNotifier

func (*SystemNotifier) GetNotificator

func (notifier *SystemNotifier) GetNotificator() chan NotifierContext

func (*SystemNotifier) NotifyInChat

func (notifier *SystemNotifier) NotifyInChat(chatId types.ChatId, params NotifierParams)

func (*SystemNotifier) NotifyInChatWithContext

func (notifier *SystemNotifier) NotifyInChatWithContext(chatId types.ChatId, context interface{}, params NotifierParams)

func (*SystemNotifier) Restart

func (notifier *SystemNotifier) Restart()

Jump to

Keyboard shortcuts

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