Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrUserprofileAlreadyExists user already exists ErrUserprofileAlreadyExists = errors.New("User profile already exists") // ErrUserAccountDoesNotExist user account does not exist ErrUserAccountDoesNotExist = errors.New("User account does not exist. Please create a user account first") // ErrSubscriptionAlreadyExists subscription already exists ErrSubscriptionAlreadyExists = errors.New("Subscription already exists") )
Functions ¶
func DecodeJSONBody ¶
func DecodeJSONBody(w http.ResponseWriter, r *http.Request, dst interface{}) error
DecodeJSONBody decodes a request body in json form and returns a malformed request error type if any errors do occur
Types ¶
type MalformedRequest ¶
MalformedRequest is a custom error type
func (*MalformedRequest) Error ¶
func (mr *MalformedRequest) Error() string
Click to show internal directories.
Click to hide internal directories.