Documentation ¶
Index ¶
Constants ¶
View Source
const (
SkipAllKey = "all"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authorizer ¶
type Authorizer struct { Credential tokenpb.TokenServiceServer // contains filtered or unexported fields }
func New ¶
func New(opts ...Option) *Authorizer
func (*Authorizer) Authorizer ¶
Authorizer auth before connection create
func (*Authorizer) CheckNeedAuth ¶
func (a *Authorizer) CheckNeedAuth(clusterKey string) bool
CheckNeedAuth check auth
type Option ¶
type Option func(authorizer *Authorizer)
func WithCredentialClient ¶
func WithCredentialClient(credential tokenpb.TokenServiceServer) Option
WithCredentialClient with core-services credential client
Click to show internal directories.
Click to hide internal directories.