MCPcopy Create free account
hub / github.com/TomDoesTech/GOTTH / GetUser

Function GetUser

internal/middleware/middleware.go:162–169  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

160}
161
162func GetUser(ctx context.Context) *store.User {
163 user := ctx.Value(UserKey)
164 if user == nil {
165 return nil
166 }
167
168 return user.(*store.User)
169}

Callers 1

navFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected