Documentation ¶
Index ¶
- Variables
- func CommitServiceClient(ctx context.Context) (pb.CommitServiceClient, error)
- func DiffServiceClient(ctx context.Context) (pb.DiffServiceClient, error)
- func Proxy(recvSend func() error) (err error)
- func SetHeaders(ctx context.Context, repo *pb.Repository) (context.Context, error)
- func Start() (*supervisor.Process, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ConnectTimeout is the timeout for establishing a connection to the gitaly-ruby process. ConnectTimeout = 20 * time.Second )
Functions ¶
func CommitServiceClient ¶
func CommitServiceClient(ctx context.Context) (pb.CommitServiceClient, error)
CommitServiceClient returns a CommitServiceClient instance that is configured to connect to the running Ruby server. This assumes Start() has been called already.
func DiffServiceClient ¶ added in v0.33.0
func DiffServiceClient(ctx context.Context) (pb.DiffServiceClient, error)
DiffServiceClient returns a DiffServiceClient instance that is configured to connect to the running Ruby server. This assumes Start() has been called already.
func Proxy ¶ added in v0.31.0
Proxy calls recvSend until it receives an error. The error is returned to the caller unless it is io.EOF.
func SetHeaders ¶
SetHeaders adds headers that tell gitaly-ruby the full path to the repository.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.