Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type LoginRequest ¶
type LoginRequest struct { Username string `json:"username" pact:"example=sally"` Password string `json:"password" pact:"example=badpassword"` }
LoginRequest is the login request API struct.
type LoginResponse ¶
type LoginResponse struct {
User *User `json:"user"`
}
LoginResponse is the login response API struct.
type User ¶
type User struct { FirstName string `json:"firstName" pact:"example=Sally"` LastName string `json:"lastName" pact:"example=McSmiley Face😀😍"` Username string `json:"username" pact:"example=sally"` Type string `json:"type" pact:"example=admin,regex=^(admin|user|guest)$"` ID int `json:"id" pact:"example=10"` }
User is a representation of a User. Dah.
Click to show internal directories.
Click to hide internal directories.