Documentation ¶
Index ¶
- func HandleAvatar(uploadDir string) http.HandlerFunc
- func HandleCreate(users core.UserStore) http.HandlerFunc
- func HandleList(users core.UserStore) http.HandlerFunc
- func HandleLogin(users core.UserStore) http.HandlerFunc
- func HandlePassword(users core.UserStore) http.HandlerFunc
- func HandleProfile(users core.UserStore) http.HandlerFunc
- func HandleUpdate(users core.UserStore) http.HandlerFunc
- func HandleUpdateProfile(users core.UserStore) http.HandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleAvatar ¶
func HandleAvatar(uploadDir string) http.HandlerFunc
HandleAvatar returns http.HandlerFunc that writes JSON encoded result about uploaded avatar to the http response body.
func HandleCreate ¶
func HandleCreate(users core.UserStore) http.HandlerFunc
HandleCreate returns an http.HandlerFunc that write JSON encoded result about creating user to the http response body.
func HandleList ¶
func HandleList(users core.UserStore) http.HandlerFunc
HandleList returns an http.HandlerFunc that writes JSON encoded list of users to the http response body.
func HandleLogin ¶
func HandleLogin(users core.UserStore) http.HandlerFunc
HandleLogin returns an http.HandlerFunc that writes JSON encoded login data to the http response body.
func HandlePassword ¶
func HandlePassword(users core.UserStore) http.HandlerFunc
HandlePassword returns http.HandlerFunc that writes JSON encoded result about updated user password to the http response body.
func HandleProfile ¶
func HandleProfile(users core.UserStore) http.HandlerFunc
HandleProfile returns an http.HandlerFunc that writes JSON encoded user data to the http response body.
func HandleUpdate ¶
func HandleUpdate(users core.UserStore) http.HandlerFunc
HandleUpdate returns http.HandlerFunc that writes JSON encoded result about updated user to the http response body.
func HandleUpdateProfile ¶
func HandleUpdateProfile(users core.UserStore) http.HandlerFunc
HandleUpdateProfile returns http.HandlerFunc that writes JSON encoded result about updated user profile to the http response body.
Types ¶
This section is empty.