ssh

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: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(
	locator storage.Locator,
	gitCmdFactory git.CommandFactory,
	txManager transaction.Manager,
	serverOpts ...ServerOpt,
) gitalypb.SSHServiceServer

NewServer creates a new instance of a grpc SSHServer

Types

type ServerOpt

type ServerOpt func(s *server)

ServerOpt is a self referential option for server

func WithArchiveRequestTimeoutTickerFactory added in v15.11.0

func WithArchiveRequestTimeoutTickerFactory(factory func() helper.Ticker) ServerOpt

WithArchiveRequestTimeoutTickerFactory sets the upload pack request timeout ticker factory.

func WithPackfileNegotiationMetrics

func WithPackfileNegotiationMetrics(c *prometheus.CounterVec) ServerOpt

func WithUploadPackRequestTimeoutTickerFactory added in v15.11.0

func WithUploadPackRequestTimeoutTickerFactory(factory func() helper.Ticker) ServerOpt

WithUploadPackRequestTimeoutTickerFactory sets the upload pack request timeout ticker factory.

Jump to

Keyboard shortcuts

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