state

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item struct {
	TelegramID       int64
	LastBotMessageID int
	Entry            teleflow.Entry
	CreatedAt        time.Time
}

type State

type State interface {
	Get(telegramID int64) (*Item, bool)

	Set(stateItem *Item) *Item

	Delete(telegramID int64)

	UpdateLastBotMessageID(telegramID int64, messageID int)

	CleanupWorker(ctx context.Context, interval, ttl time.Duration)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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