package
0.0.0-20241212055342-bf028c80b18a
Repository: https://github.com/bytesbyharsh/go-my-info.git
Documentation: pkg.go.dev
# Functions
AdminOnly middleware restricts access to just administrators.
ArticleCtx middleware is used to load an Article object from the URL parameters passed through as the request.
CreateArticle persists the posted Article and returns it back to the client as an acknowledgement.
DeleteArticle removes an existing Article from our persistent store.
No description provided by the author
No description provided by the author
GetArticle returns the specific Article.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SearchArticles searches the Articles data for a matching article.
UpdateArticle updates an existing Article in our persistent store.
# Variables
No description provided by the author
# Structs
Article data model.
ArticleRequest is the request payload for Article data model.
ArticleResponse is the response payload for the Article data model.
ErrResponse renderer type for handling all sorts of errors.
User data model.
No description provided by the author