service

package
v0.0.0-...-840a1b4 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2017 License: MIT Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUser

func CreateUser(c *gin.Context)

CreateUser creates a new user account.

func DeleteUser

func DeleteUser(c *gin.Context)

DeleteUser deletes the user by the user identifier.

func GetUser

func GetUser(c *gin.Context)

GetUser gets an user by the user identifier.

func PostToken

func PostToken(c *gin.Context)

PostToken generates the authentication token if the password was matched with the specified account.

func SendMail

func SendMail(c *gin.Context)

SendMail sends the mail to the new user's inbox.

func UpdateUser

func UpdateUser(c *gin.Context)

UpdateUser updates an user account information.

func UserCreated

func UserCreated(c *gin.Context)

UserCreated handles the `user-created` event.

func WatchUser

func WatchUser(c *gin.Context)

WatchUser watches the user changes, and broadcast when there's a new user.

Types

This section is empty.

Jump to

Keyboard shortcuts

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