client

package
v0.0.0-...-1baf13c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StreamInterceptor

func StreamInterceptor(oidcc oauth2.TokenSource, bypassMethods ...string) grpc.StreamClientInterceptor

StreamInterceptor is a stream interceptor.

func UnaryInterceptor

func UnaryInterceptor(oidcc oauth2.TokenSource, bypassMethods ...string) grpc.UnaryClientInterceptor

UnaryInterceptor is an unary interceptor.

Types

type InsecureTokenSource

type InsecureTokenSource struct {
	oauth2.TokenSource
}

InsecureTokenSource supplies PerRPCCredentials from an oauth2.TokenSource.

func (InsecureTokenSource) GetRequestMetadata

func (its InsecureTokenSource) GetRequestMetadata(ctx context.Context, uri ...string) (map[string]string, error)

GetRequestMetadata gets the request metadata as a map from a TokenSource.

func (InsecureTokenSource) RequireTransportSecurity

func (its InsecureTokenSource) RequireTransportSecurity() bool

RequireTransportSecurity indicates whether the credentials requires transport security.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL