Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store wraps the SQLite database.
func (*Store) Delete ¶
Delete removes a document if the tokenHash matches. Returns true if a row was deleted, false if not found or token mismatch.
func (*Store) GenerateID ¶
GenerateID returns a unique Base62 ID of the given length. It retries on collision (extremely rare with 4+ chars).
Click to show internal directories.
Click to hide internal directories.