ssh

package
v15.10.4 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 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 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