Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GrpcAuthUnaryServerInterceptor ¶
func GrpcAuthUnaryServerInterceptor() grpc.UnaryServerInterceptor
GrpcAuthUnaryServerInterceptor returns a new unary server interceptor for auth.
Types ¶
type HttpAuther ¶
type HttpAuther struct {
// contains filtered or unexported fields
}
func (*HttpAuther) GoRestfulAuthFunc ¶
func (a *HttpAuther) GoRestfulAuthFunc(req *restful.Request, resp *restful.Response, next *restful.FilterChain)
是否开启权限的控制, 交给中间件使用方去觉得
Click to show internal directories.
Click to hide internal directories.