svc

package
v0.0.0-...-c55c97e Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceContext

type ServiceContext struct {
	Config        config.Config
	User          user.User
	Role          role.Role
	Casbin        casbin.Casbin
	CasbinRbac    rest.Middleware
	JwtMiddleWare rest.Middleware
}

func NewServiceContext

func NewServiceContext(c config.Config) *ServiceContext

func (*ServiceContext) Enforce

func (s *ServiceContext) Enforce(r *http.Request, role string, path string, method string) (bool, error)

Jump to

Keyboard shortcuts

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