user

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL