Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResponsePermission ¶
ResponsePermission response friendly version of db.Permission
func TransformPermission ¶
func TransformPermission(permission db.Permission) ResponsePermission
TransformPermission takes db data and returns response friendly data
func TransformPermissions ¶
func TransformPermissions(items []db.Permission) []ResponsePermission
TransformPermissions takes slice of db data and returns response friendly data
type ResponseRefreshToken ¶
ResponseRefreshToken is response friendly db.RefreshToken
func TransformRefreshToken ¶
func TransformRefreshToken(item db.RefreshToken) ResponseRefreshToken
TransformRefreshToken takes db data and returns response friendly data
func TransformRefreshTokens ¶
func TransformRefreshTokens(items []db.RefreshToken) []ResponseRefreshToken
TransformRefreshTokens takes slice of db data and returns response friendly data
type ResponseUser ¶
type ResponseUser struct { ID bson.ObjectId `json:"id"` Email string `json:"email"` Permissions []string `json:"permissions"` }
ResponseUser response friendly version of db.User
func TransformUser ¶
func TransformUser(user db.User) ResponseUser
TransformUser takes db data and returns response friendly data
func TransformUsers ¶
func TransformUsers(items []db.User) []ResponseUser
TransformUsers takes slice of db data and returns response friendly data
Click to show internal directories.
Click to hide internal directories.