middlewares

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IdentityMiddleware

type IdentityMiddleware struct {
	// contains filtered or unexported fields
}

func NewMiddleware

func NewMiddleware(userRervice *users.UserService, roleServce *permissions.RoleService, rightService *permissions.RightService, log *zap.Logger) *IdentityMiddleware

func (*IdentityMiddleware) Authenticate

func (m *IdentityMiddleware) Authenticate() gin.HandlerFunc

func (*IdentityMiddleware) Authorize

func (m *IdentityMiddleware) Authorize(roles ...string) gin.HandlerFunc

func (*IdentityMiddleware) AuthorizeSpecific

func (m *IdentityMiddleware) AuthorizeSpecific(rrs []string) gin.HandlerFunc

Jump to

Keyboard shortcuts

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