Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CSRFByForm ¶
func CSRFByForm() echo.MiddlewareFunc
func HandlerError ¶
func HandlerError(err error, ctx echo.Context)
Types ¶
type AuthMiddleware ¶
type AuthMiddleware interface { MustAuthClientSecret(next echo.HandlerFunc) echo.HandlerFunc MustVerifyAdminClient(next echo.HandlerFunc) echo.HandlerFunc AuthClientSecret() func(handler http.Handler) http.Handler AuthAccessToken() func(handler http.Handler) http.Handler VerifyClient() func(handler http.Handler) http.Handler VerifyFileDownloadPermission(next echo.HandlerFunc) echo.HandlerFunc }
func NewAuthMiddleware ¶
func NewAuthMiddleware(oauthUseCase usecases.OauthUseCase, downloadUseCase usecases.DownloadUseCase) AuthMiddleware
Click to show internal directories.
Click to hide internal directories.