Documentation
¶
Index ¶
- func NewHandler(c *Config)
- type Config
- type Handler
- func (h *Handler) DeleteImage(c *gin.Context)
- func (h *Handler) Details(c *gin.Context)
- func (h *Handler) Me(c *gin.Context)
- func (h *Handler) Signin(c *gin.Context)
- func (h *Handler) Signout(c *gin.Context)
- func (h *Handler) Signup(c *gin.Context)
- func (h *Handler) Tokens(c *gin.Context)
- func (h *Handler) UploadImage(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
func NewHandler(c *Config)
NewHandler Initializes the handler with the required injected services and the http routes
Types ¶
type Config ¶
type Config struct { R *gin.Engine UserService models.UserService TokenService models.TokenService BaseURL string TimeoutDuration time.Duration MaxBodyBytes int64 }
Config Holds services that will be injected into the handler layer on handler initialization
type Handler ¶
type Handler struct { UserService models.UserService TokenService models.TokenService MaxBodyBytes int64 }
Handler Holds required services for the handler to function
Click to show internal directories.
Click to hide internal directories.