looper

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TickNotify  = 5 * time.Minute
	TickCleanup = 1 * time.Hour
	TickRefresh = 30 * time.Minute

	WindowNotify  = 10 * time.Minute
	WindowCleanup = 72 * time.Hour
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Looper

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

func New

func New(db db.DB, sendico *sendico.Client, bot *bot.Bot) *Looper

func (*Looper) Cleanup

func (l *Looper) Cleanup(ctx context.Context)

func (*Looper) Notify

func (l *Looper) Notify(ctx context.Context)

func (*Looper) Refresh added in v0.3.0

func (l *Looper) Refresh(ctx context.Context)

Jump to

Keyboard shortcuts

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