Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthHandler ¶
type AuthHandler struct {
// contains filtered or unexported fields
}
func NewUsersHandler ¶
func NewUsersHandler(cfg *config.Config) *AuthHandler
func (*AuthHandler) Login ¶
func (h *AuthHandler) Login(c *gin.Context)
func (*AuthHandler) Register ¶
func (h *AuthHandler) Register(c *gin.Context)
type PostsHandler ¶
type PostsHandler struct {
// contains filtered or unexported fields
}
func NewPostsHandler ¶
func NewPostsHandler(cfg *config.Config) *PostsHandler
func (*PostsHandler) CreatePost ¶
func (p *PostsHandler) CreatePost(c *gin.Context)
func (*PostsHandler) DeletePost ¶
func (p *PostsHandler) DeletePost(c *gin.Context)
func (*PostsHandler) Get ¶
func (p *PostsHandler) Get(c *gin.Context)
func (*PostsHandler) GetAllPost ¶
func (p *PostsHandler) GetAllPost(c *gin.Context)
func (*PostsHandler) UpdatePost ¶
func (p *PostsHandler) UpdatePost(c *gin.Context)
Click to show internal directories.
Click to hide internal directories.