Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dnote/dnote
/ New
Function
New
pkg/server/session/session.go:29–34 ·
view source on GitHub ↗
New returns a new session for the given user
(user database.User)
Source
from the content-addressed store, hash-verified
27
28
// New returns a new session for the given user
29
func
New(user database.User) Session {
30
return
Session{
31
UUID: user.UUID,
32
Email: user.Email.String,
33
}
34
}
Callers
1
TestNew
Function · 0.70
Calls
no outgoing calls
Tested by
1
TestNew
Function · 0.56