ssh

package
v16.4.2 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(deps *service.Dependencies, 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

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

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