MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / userImpl

Struct userImpl

auth/user.go:28–38  ·  view source on GitHub ↗

Actual implementation of User interface

Source from the content-addressed store, hash-verified

26
27// Actual implementation of User interface
28type userImpl struct {
29 roleImpl // userImpl "inherits from" Role
30 userImplBody
31 auth *Authenticator
32 roles []Role
33 deletedRoles []Role // Roles that are granted to the user, but have been deleted
34
35 // warnChanThresholdOnce ensures that the check for channels
36 // per user threshold is only performed exactly once.
37 warnChanThresholdOnce sync.Once
38}
39
40// Marshallable data is stored in separate struct from userImpl,
41// to work around limitations of JSON marshaling.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected