ssh

package
v14.4.3 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2021 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(
	cfg config.Cfg,
	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 WithArchiveRequestTimeout

func WithArchiveRequestTimeout(d time.Duration) ServerOpt

WithArchiveRequestTimeout sets the upload pack request timeout

func WithPackfileNegotiationMetrics

func WithPackfileNegotiationMetrics(c *prometheus.CounterVec) ServerOpt

func WithUploadPackRequestTimeout

func WithUploadPackRequestTimeout(d time.Duration) ServerOpt

WithUploadPackRequestTimeout sets the upload pack request timeout

Jump to

Keyboard shortcuts

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