gitaly

package
v14.47.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package gitaly provides a client for interacting with Gitaly services over gRPC.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheKey added in v14.46.0

type CacheKey struct {
	ServiceName string
	Address     string
	Token       string
}

CacheKey contains the fields used for connection caching.

type Client

type Client struct {
	SidechannelRegistry *gitalyclient.SidechannelRegistry
	// contains filtered or unexported fields
}

Client manages connections to Gitaly services and handles sidechannel communication.

func (*Client) GetConnection

func (c *Client) GetConnection(ctx context.Context, cmd Command) (*grpc.ClientConn, error)

GetConnection returns a gRPC connection for the given command, using a cached connection if available.

func (*Client) InitSidechannelRegistry

func (c *Client) InitSidechannelRegistry(ctx context.Context)

InitSidechannelRegistry initializes the sidechannel registry for gRPC connections.

type Command

type Command struct {
	CacheKey

	RetryPolicy *gitalyclient.RetryPolicy
}

Command represents a gRPC service command with its address and token.

Jump to

Keyboard shortcuts

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