Documentation ¶
Overview ¶
Mappers contains functions that will map an input to an output. These are convenience functions that are gathered here to reduce the problem of circular references
Index ¶
- func ResponseFromUser(rtn *response.UserReturn, user *tenant.User) *response.UserReturn
- func StrToBool(val string, defaultVal bool) bool
- func StrToInt(t string) int
- func StrToTime(t string) time.Time
- func UserField(user *tenant.User, key, value string) (found bool, rtn error)
- func UserFromCli(rtn *tenant.User, r *tenant.UserCli) (ortn *tenant.User, err error)
- type ErrFunctionBoolSetter
- type ErrFunctionSetter
- type ErrSetter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResponseFromUser ¶
func ResponseFromUser(rtn *response.UserReturn, user *tenant.User) *response.UserReturn
ResponseFromUser takes a user record and copies the relevant fields from the user's record.
Types ¶
type ErrFunctionBoolSetter ¶
type ErrFunctionSetter ¶
Click to show internal directories.
Click to hide internal directories.