Documentation
¶
Index ¶
- func AuthnBypasswInterceptor() grpc.UnaryServerInterceptor
- func AuthnInterceptor(retriever UserRetriever) grpc.UnaryServerInterceptor
- func AuthzInterceptor(authorizer Authorizer) grpc.UnaryServerInterceptor
- func DefaulterInterceptor() grpc.UnaryServerInterceptor
- func RequestIDInterceptor() grpc.UnaryServerInterceptor
- func ValidatorInterceptor(validator RequestValidator) grpc.UnaryServerInterceptor
- type Authorizer
- type RequestValidator
- type UserRetriever
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthnBypasswInterceptor ¶
func AuthnBypasswInterceptor() grpc.UnaryServerInterceptor
AuthnBypasswInterceptor 是一个 gRPC 拦截器,模拟所有请求都通过认证。
func AuthnInterceptor ¶
func AuthnInterceptor(retriever UserRetriever) grpc.UnaryServerInterceptor
AuthnInterceptor 是一个 gRPC 拦截器,用于进行认证.
func AuthzInterceptor ¶
func AuthzInterceptor(authorizer Authorizer) grpc.UnaryServerInterceptor
AuthzInterceptor 是一个 gRPC 拦截器,用于进行请求授权.
func DefaulterInterceptor ¶
func DefaulterInterceptor() grpc.UnaryServerInterceptor
DefaulterInterceptor 是一个 gRPC 拦截器,用于对请求进行默认值设置.
func RequestIDInterceptor ¶
func RequestIDInterceptor() grpc.UnaryServerInterceptor
RequestIDInterceptor 是一个 gRPC 拦截器,用于设置请求 ID.
func ValidatorInterceptor ¶
func ValidatorInterceptor(validator RequestValidator) grpc.UnaryServerInterceptor
ValidatorInterceptor 是一个 gRPC 拦截器,用于对请求进行验证.
Types ¶
type Authorizer ¶
Authorizer 用于定义授权接口的实现.
type RequestValidator ¶
RequestValidator 定义了用于自定义验证的接口.
Click to show internal directories.
Click to hide internal directories.