Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateAgeGT ¶
func ValidateAgeGT(fl validator.FieldLevel) bool
Types ¶
type ApiError ¶
ApiError represents an API error containing parameter and message details.
func ConstructErrorMeesages ¶
type CreateUserRequest ¶
type CreateUserRequest struct { UserId int64 `json:"userId"` Traits UserTraits `json:"traits"` }
type NewUserRequest ¶
type NewUserRequest struct { Name string `json:"name" validate:"required"` Email string `json:"email" validate:"email"` NewsletterConsent bool `json:"newsletterConsent" validate:"boolean"` DOB time.Time `json:"dob" validate:"age=16"` }
func (*NewUserRequest) Validate ¶
func (newUserReq *NewUserRequest) Validate() error
type UserGetResponse ¶
type UserTraits ¶
Click to show internal directories.
Click to hide internal directories.