package
Version:
v0.0.0-...-9dec8c7
Opens a new window with list of versions in this module.
Published: Sep 7, 2020
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Create creates a new user account.
Delete delete an user by the user identifier.
Get gets an user by the user identifier.
List list the users in the database.
Update update a exist user account info.
type CreateRequest struct {
Username string `json:"username"`
Password string `json:"password"`
}
type CreateResponse struct {
Username string `json:"username"`
}
type ListRequest struct {
Username string `json:"username"`
Offset int `json:"offset"`
Limit int `json:"limit"`
}
type ListResponse struct {
TotalCount uint64 `json:"totalCount"`
UserList []*model.UserInfo `json:"userList"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.