client

package
v15.11.13 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dial

func Dial(ctx context.Context, rawAddress string, connOpts []grpc.DialOption, handshaker Handshaker) (*grpc.ClientConn, error)

Dial dials a Gitaly node serving at the given address. Dial is used by the public 'client' package and the expected behavior is mostly documented there.

If handshaker is provided, it's passed the transport credentials which would be otherwise set. The transport credentials returned by handshaker are then set instead.

func StreamInterceptor added in v15.4.0

func StreamInterceptor() grpc.DialOption

StreamInterceptor returns the stream interceptors that should be configured for a client.

func UnaryInterceptor

func UnaryInterceptor() grpc.DialOption

UnaryInterceptor returns the unary interceptors that should be configured for a client.

Types

type Handshaker

type Handshaker interface {
	// ClientHandshake wraps the provided credentials and returns new credentials.
	ClientHandshake(credentials.TransportCredentials) credentials.TransportCredentials
}

Handshaker is an interface that allows for wrapping the transport credentials with a custom handshake.

Jump to

Keyboard shortcuts

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