smarthttp

package
v14.5.4 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2022 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,
	cache cache.Streamer, serverOpts ...ServerOpt) gitalypb.SmartHTTPServiceServer

NewServer creates a new instance of a grpc SmartHTTPServer

Types

type ServerOpt

type ServerOpt func(s *server)

ServerOpt is a self referential option for server

func WithPackfileNegotiationMetrics

func WithPackfileNegotiationMetrics(c *prometheus.CounterVec) ServerOpt

nolint: revive,stylecheck // This is unintentionally missing documentation.

Jump to

Keyboard shortcuts

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