Documentation
¶
Index ¶
- func EscapeMarkdownV2(v any) string
- func Ref(v any, url string) string
- func Spoiler(v any) string
- func UserIdRef(v any, id int64) string
- func UserRef(v any, user string) string
- type AlertBot
- func (o *AlertBot) Close()
- func (o *AlertBot) Closing()
- func (o *AlertBot) QueueSize() int
- func (o *AlertBot) Send(message string)
- func (o *AlertBot) SendLog(m ulog.Message)
- func (o *AlertBot) Sendf(f string, v ...any)
- func (o *AlertBot) SetLogMessageLimit(limit int)
- func (o *AlertBot) SetQueue(queue QueueIf[string])
- func (o *AlertBot) Shutdown(ts time.Duration)
- func (o *AlertBot) Startup()
- type Limiter
- type LimiterIf
- type Queue
- type QueueIf
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EscapeMarkdownV2 ¶ added in v0.6.0
Types ¶
type AlertBot ¶
type AlertBot struct {
// contains filtered or unexported fields
}
func (*AlertBot) SetLogMessageLimit ¶ added in v0.6.6
type Limiter ¶
type Limiter[T any] struct { // contains filtered or unexported fields }
func NewLimiter ¶
func (*Limiter[T]) SetInterval ¶ added in v0.5.30
type Queue ¶ added in v0.5.30
type Queue[T any] struct { // contains filtered or unexported fields }
func (*Queue[T]) SetCapacity ¶ added in v0.5.30
Click to show internal directories.
Click to hide internal directories.