middleware

package
v0.0.0-...-6a8978f Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2022 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 HttpAudit

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

func NewHttpAuditor

func NewHttpAuditor() (*HttpAudit, error)

给服务端提供的RESTful接口的 认证与鉴权中间件

func (*HttpAudit) GoRestfulAuditFunc

func (a *HttpAudit) GoRestfulAuditFunc(req *restful.Request, resp *restful.Response, next *restful.FilterChain)

是否开启权限的控制, 交给中间件使用方去觉得

Jump to

Keyboard shortcuts

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