middleware

package
v0.0.0-...-1100b98 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Casbin

func Casbin() gin.HandlerFunc

Casbin The first layer of access control Default role is guest If the user is logged in, the role will be the user's group If the user's role has permission to access the resource, the request will be passed By the way, the user's information will be set to the context

func Frontend

func Frontend(urlPrefix string) gin.HandlerFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

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