Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dial.go « client - gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b92e5a0b2b14200d1e68f0366828f6e8d81d5ffa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package client

import (
	"google.golang.org/grpc"
)

// DefaultDialOpts hold the default DialOptions for connection to Gitaly over UNIX-socket
var DefaultDialOpts = []grpc.DialOption{
	grpc.WithInsecure(),
}

// Dial gitaly
// Deprecated: Use grpc.Dial directly instead
func Dial(rawAddress string, connOpts []grpc.DialOption) (*grpc.ClientConn, error) {
	conn, err := grpc.Dial(rawAddress, connOpts...)
	if err != nil {
		return nil, err
	}

	return conn, nil
}