MCPcopy Create free account
hub / github.com/0xUnixIO/pulse / SessionStore

Struct SessionStore

internal/store/postgres/sessions.go:12–14  ·  view source on GitHub ↗

SessionStore 将登录 session 持久化到 PostgreSQL。

Source from the content-addressed store, hash-verified

10
11// SessionStore 将登录 session 持久化到 PostgreSQL。
12type SessionStore struct {
13 db *pgxpool.Pool
14}
15
16func (s *SessionStore) Create(token, username string) error {
17 return sqlcgen.New(s.db).UpsertSession(context.Background(), sqlcgen.UpsertSessionParams{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected