Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
LocalFile string // The path to the local file or in-memory database identifier.
Reset bool // Flag to indicate whether the database should be reset.
}
Config represents configuration options for setting up a Queue or database.
type Item ¶
type Item struct {
ID int // Unique identifier for the item.
Data []byte // Data of the item, stored as a byte slice.
}
Item represents a queue item with an ID, data, and a creation timestamp.
type Queue ¶
type Queue struct {
// contains filtered or unexported fields
}
Queue provides a FIFO queue backed by a SQLite database.
func New ¶
New initializes a new Queue instance and sets up the database connection. It optionally resets the database if specified in the configuration.
Click to show internal directories.
Click to hide internal directories.