Documentation
¶
Overview ¶
Package types contains types to use across the Consumer/Provider tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type LoginRequest ¶
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 { Name string `json:"name"` Username string Password string Type string `json:"type"` }
User is a representation of a User. Dah.
type UserRepository ¶
UserRepository is an in-memory user database.
func (*UserRepository) ByUsername ¶
func (u *UserRepository) ByUsername(username string) (*User, error)
ByUsername finds a user by their username.
Click to show internal directories.
Click to hide internal directories.