package
0.0.0-20210802082138-1c5fac9d5069
Repository: https://github.com/mactsouk/rest-api.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
AddHandler is for adding a new user.
DefaultHandler is for handling everything that is not a match.
DeleteHandler is for deleting users based on user ID.
GetIDHandler returns the ID of an existing user.
LoggedUsersHandler returns the list of all logged in users.
LoginHandler is for updating the LastLogin time of a user And changing the Active field to true.
MethodNotAllowedHandler is executed when the HTTP method is incorrect.
TimeHandler is for handling /time – it works with plain text.
# Structs
Generic BadRequest message returned as an HTTP Status Code swagger:response BadRequest.
Generic error message returned as an HTTP Status Code swagger:response ErrorMessage.
Generic OK message returned as an HTTP Status Code swagger:response OK.
User defines the structure for a Full User Record
swagger:model.
A User swagger:parameters getUserInfo loggedInfo.
A list of Users swagger:response UsersResponse.