Documentation ¶
Index ¶
Constants ¶
View Source
const (
UserCollection = "users"
)
Variables ¶
View Source
var ( MsgRouterNotFound = &pbs.Error{ Code: http.StatusNotFound, Description: "router not found.", } MsgUserAlreadyExisted = &pbs.Error{ Code: http.StatusConflict, Description: "username already exists.", } MsgLoginFailed = &pbs.Error{ Code: http.StatusUnauthorized, Description: "username or password is mismatch.", } MsgInternalServerError = &pbs.Error{ Code: http.StatusInternalServerError, Description: "oops...something went wrong.", } MsgBadUserRequest = &pbs.Error{ Code: http.StatusBadRequest, Description: "invalid user input.", } ErrUserNameAlreadyExisted = errors.New("username already existed.") )
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.