Documentation
¶
Overview ¶
Package auth 提供 grpc-kit 微服务脚手架的认证授权模块
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client 认证鉴权客户端
func (*Client) AuthMetadata ¶
AuthMetadata 把 http 请求信息转换为 grpc 的 metadata 用于鉴权
type Config ¶
type Config struct {
PackageName string
OPASDK *OPASDKConfig
OPARego *OPARegoConfig
OPAEnvoy *OPAEnvoyPluginConfig
}
Config xx
type OPAEnvoyPluginConfig ¶
type OPAEnvoyPluginConfig struct {
GRPCAddress string
}
type OPARegoConfig ¶
type OPASDKConfig ¶
type OPASDKConfig struct {
Config string
}
Click to show internal directories.
Click to hide internal directories.