Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AuthJWKString = "" /* 372-byte string literal not displayed */ InstitutionInviteLinkNP = &entity.InstitutionInviteLink{ ID: 1, Code: "abcdef", Role: institution.RoleMember, Edges: entity.InstitutionInviteLinkEdges{ Institution: InstitutionNP, }, } Institutions = []*entity.Institution{InstitutionNP, InstitutionSP} InstitutionNP = &entity.Institution{ ID: 1, Name: "Ngee Ann Polytechnic", ShortName: "NP", Description: "Ngee Ann Polytechnic", } InstitutionSP = &entity.Institution{ ID: 1, Name: "Singapore Polytechnic", ShortName: "SP", Description: "Singapore Polytechnic", } UserJohnPassword = "example" UserJohn = &entity.User{ ID: 1, FirstName: "John", LastName: "The Ripper", Email: "john@theripper.com", Password: (func() (enc hash.Encoded) { _ = json.Unmarshal([]byte(encodedPasswordString), &enc) return })(), Points: 1, PointsAwardedCount: 1, PointsAwardedResetTime: time.Now(), GodMode: false, Role: institution.RoleMember, Edges: entity.UserEdges{ Institution: InstitutionNP, }, } )
View Source
var ( RepoInternalErr = errors.New("repo internal err") RepoNotFoundErr = new(ent.NotFoundError) RepoConflictErr = new(ent.ConstraintError) )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.