Documentation ¶
Index ¶
- func SetGlobal(cli *Client)
- type Authentication
- type Client
- func (c *Client) ApplicationAdmin() application.AdminServiceClient
- func (c *Client) ApplicationUser() application.UserServiceClient
- func (c *Client) Department() department.DepartmentServiceClient
- func (c *Client) Domain() domain.DomainServiceClient
- func (c *Client) Endpoint() endpoint.EndpointServiceClient
- func (c *Client) Micro() micro.MicroServiceClient
- func (c *Client) Namespace() namespace.NamespaceServiceClient
- func (c *Client) Permission() permission.PermissionServiceClient
- func (c *Client) Policy() policy.PolicyServiceClient
- func (c *Client) Role() role.RoleServiceClient
- func (c *Client) SessionAdmin() session.AdminServiceClient
- func (c *Client) SessionUser() session.UserServiceClient
- func (c *Client) Token() token.TokenServiceClient
- func (c *Client) User() user.UserServiceClient
- func (c *Client) Verifycode() verifycode.VerifyCodeServiceClient
- type Config
- type GrpcAuther
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Authentication ¶
type Authentication struct {
// contains filtered or unexported fields
}
Authentication todo
func (*Authentication) GetRequestMetadata ¶
func (a *Authentication) GetRequestMetadata(context.Context, ...string) ( map[string]string, error, )
GetRequestMetadata todo
func (*Authentication) RequireTransportSecurity ¶
func (a *Authentication) RequireTransportSecurity() bool
RequireTransportSecurity todo
func (*Authentication) SetClientCredentials ¶
func (a *Authentication) SetClientCredentials(clientID, clientSecret string)
SetClientCredentials todo
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client 客户端
func (*Client) ApplicationAdmin ¶
func (c *Client) ApplicationAdmin() application.AdminServiceClient
ApplicationAdmin todo
func (*Client) ApplicationUser ¶
func (c *Client) ApplicationUser() application.UserServiceClient
ApplicationUser todo
func (*Client) Department ¶
func (c *Client) Department() department.DepartmentServiceClient
Department todo
func (*Client) Namespace ¶
func (c *Client) Namespace() namespace.NamespaceServiceClient
Namespace todo
func (*Client) Permission ¶
func (c *Client) Permission() permission.PermissionServiceClient
Permission todo
func (*Client) SessionAdmin ¶
func (c *Client) SessionAdmin() session.AdminServiceClient
SessionAdmin todo
func (*Client) SessionUser ¶
func (c *Client) SessionUser() session.UserServiceClient
SessionUser todo
func (*Client) Verifycode ¶
func (c *Client) Verifycode() verifycode.VerifyCodeServiceClient
Verifycode todo
type Config ¶
type Config struct { *Authentication // contains filtered or unexported fields }
Config 客户端配置
type GrpcAuther ¶
type GrpcAuther struct {
// contains filtered or unexported fields
}
GrpcAuther todo
func NewGrpcKeyauthAuther ¶
func NewGrpcKeyauthAuther(c *Client) *GrpcAuther
NewGrpcKeyauthAuther todo
func (*GrpcAuther) AuthUnaryServerInterceptor ¶
func (a *GrpcAuther) AuthUnaryServerInterceptor() grpc.UnaryServerInterceptor
AuthUnaryServerInterceptor returns a new unary server interceptor for auth.
Click to show internal directories.
Click to hide internal directories.