gitaly

package
v14.40.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2025 License: MIT Imports: 12 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 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 {
	ServiceName string
	Address     string
	Token       string
}

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