Extract in-memory session map into SessionStore interface with two implementations: MemorySessionStore (default, backward-compatible) and SQLiteSessionStore (persistent via go-store). Add WithSessionStore option, background cleanup goroutine, and comprehensive tests including persistence verification and concurrency safety. Phase 1: Session Persistence — complete. Co-Authored-By: Virgil <virgil@lethean.io>
35 lines
1.1 KiB
Modula-2
35 lines
1.1 KiB
Modula-2
module forge.lthn.ai/core/go-crypt
|
|
|
|
go 1.25.5
|
|
|
|
require (
|
|
forge.lthn.ai/core/go v0.0.0
|
|
forge.lthn.ai/core/go-store v0.0.0
|
|
github.com/ProtonMail/go-crypto v1.3.0
|
|
github.com/stretchr/testify v1.11.1
|
|
golang.org/x/crypto v0.48.0
|
|
)
|
|
|
|
require (
|
|
github.com/cloudflare/circl v1.6.3 // indirect
|
|
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
|
|
github.com/dustin/go-humanize v1.0.1 // indirect
|
|
github.com/google/uuid v1.6.0 // indirect
|
|
github.com/kr/pretty v0.3.1 // indirect
|
|
github.com/mattn/go-isatty v0.0.20 // indirect
|
|
github.com/ncruces/go-strftime v1.0.0 // indirect
|
|
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
|
|
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
|
|
golang.org/x/exp v0.0.0-20260212183809-81e46e3db34a // indirect
|
|
golang.org/x/sys v0.41.0 // indirect
|
|
gopkg.in/yaml.v3 v3.0.1 // indirect
|
|
modernc.org/libc v1.67.7 // indirect
|
|
modernc.org/mathutil v1.7.1 // indirect
|
|
modernc.org/memory v1.11.0 // indirect
|
|
modernc.org/sqlite v1.46.1 // indirect
|
|
)
|
|
|
|
replace (
|
|
forge.lthn.ai/core/go => ../go
|
|
forge.lthn.ai/core/go-store => ../go-store
|
|
)
|