Documentation ¶
Index ¶
Constants ¶
View Source
const RequestContextKey = "request_context"
Variables ¶
This section is empty.
Functions ¶
func GlobalMiddleware ¶
func GlobalMiddleware() gin.HandlerFunc
func HandlerAPI ¶
func HandlerAPI(mustBeAuthenticate bool, f func(ctx *context.Context, c *gin.Context) error) gin.HandlerFunc
HandlerAPI .
func HandlerPage ¶
func HandlerPage(mustBeAuthenticate bool, f func(ctx *context.Context, c *gin.Context) error) gin.HandlerFunc
HandlerPage provide abstractionn for page handler receive the context of application.
Types ¶
type HTTPHandler ¶
type HTTPHandler struct {
// contains filtered or unexported fields
}
HTTPHandler .
func NewHTTPHandler ¶
func NewHTTPHandler( authService ports.AuthService, stockService ports.StockService, ) *HTTPHandler
NewHTTPHandler new account handler
func (*HTTPHandler) LoginHandler ¶
LoginHandler represent endpoint: [GET] /dashboards
Click to show internal directories.
Click to hide internal directories.