MCPcopy
hub / github.com/ccfos/nightingale / UserGetByUsername

Function UserGetByUsername

models/user.go:413–415  ·  view source on GitHub ↗
(ctx *ctx.Context, username string)

Source from the content-addressed store, hash-verified

411}
412
413func UserGetByUsername(ctx *ctx.Context, username string) (*User, error) {
414 return UserGet(ctx, "username=?", username)
415}
416
417func UserGetById(ctx *ctx.Context, id int64) (*User, error) {
418 return UserGet(ctx, "id=?", id)

Callers 9

LdapLoginFunction · 0.92
handleProxyUserMethod · 0.92
userMethod · 0.92
userBusiGroupsGetsMethod · 0.92
installDateGetMethod · 0.92
AddMethod · 0.85
InitRootFunction · 0.85
PassLoginFunction · 0.85
UserGroupsMethod · 0.85

Calls 1

UserGetFunction · 0.85

Tested by

no test coverage detected