middlewares

package
v2.0.2-rc.25 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error() gin.HandlerFunc

func Jwt

func Jwt(service service.Service) (*jwt.GinJWTMiddleware, error)

func RBAC

func RBAC(e *casbin.Enforcer) gin.HandlerFunc

Types

type ErrorResponse

type ErrorResponse struct {
	Message     string `json:"message,omitempty"`
	Error       string `json:"errors,omitempty"`
	DocumentURL string `json:"documentation_url,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL