Documentation ¶
Index ¶
- func EnqueueMessageWL(message tptypes.QueueMessage)
- func GetSilentPatternsByChatIdRL(chatID int64) map[string]time.Time
- func RemoveSilencePatternWL(chatID int64, pattern string) error
- func SetSilencePatternWL(chatID int64, pattern string, duration time.Duration) (update bool, err error)
- func ShouldSendMessageWL(_case PreventSpammingCase, identities []string, ...) (shouldSendToIdentities []string)
- func StartTelegramPusherService(appCtx config.AppContext)
- type PreventSpammingCase
- type ReceiverBasedQueue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnqueueMessageWL ¶ added in v1.2.0
func EnqueueMessageWL(message tptypes.QueueMessage)
func GetSilentPatternsByChatIdRL ¶ added in v1.4.0
func RemoveSilencePatternWL ¶ added in v1.4.0
func SetSilencePatternWL ¶ added in v1.4.0
func ShouldSendMessageWL ¶
func ShouldSendMessageWL(_case PreventSpammingCase, identities []string, ignoreIfLastSentLessThan time.Duration) (shouldSendToIdentities []string)
func StartTelegramPusherService ¶ added in v1.2.0
func StartTelegramPusherService(appCtx config.AppContext)
Types ¶
type PreventSpammingCase ¶
type PreventSpammingCase int8
const ( PreventSpammingCaseTomeStoned PreventSpammingCase = iota PreventSpammingCaseJailed PreventSpammingCaseLowUptime PreventSpammingCaseMissedBlocksOverDangerousThreshold PreventSpammingCaseDirectHealthCheckOptionalRPC PreventSpammingCaseHealthCheckManagedRPC PreventSpammingCaseNotVotedGovernance )
type ReceiverBasedQueue ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.