Documentation
¶
Index ¶
- type BearerTokenAuth
- func (b *BearerTokenAuth) GetRequestMetadata(ctx context.Context, uri ...string) (map[string]string, error)
- func (b *BearerTokenAuth) RequireTransportSecurity() bool
- func (b *BearerTokenAuth) StreamInterceptor() grpc.StreamClientInterceptor
- func (b *BearerTokenAuth) UnaryInterceptor() grpc.UnaryClientInterceptor
- type TokenProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BearerTokenAuth ¶
type BearerTokenAuth struct {
// contains filtered or unexported fields
}
func NewBearerToken ¶
func NewBearerToken(token string) *BearerTokenAuth
func NewBearerTokenProvider ¶
func NewBearerTokenProvider(provider TokenProvider) *BearerTokenAuth
func (*BearerTokenAuth) GetRequestMetadata ¶
func (*BearerTokenAuth) RequireTransportSecurity ¶
func (b *BearerTokenAuth) RequireTransportSecurity() bool
func (*BearerTokenAuth) StreamInterceptor ¶
func (b *BearerTokenAuth) StreamInterceptor() grpc.StreamClientInterceptor
func (*BearerTokenAuth) UnaryInterceptor ¶
func (b *BearerTokenAuth) UnaryInterceptor() grpc.UnaryClientInterceptor
type TokenProvider ¶
Click to show internal directories.
Click to hide internal directories.