testserver

package
v14.41.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2025 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartHTTPSServer added in v14.40.0

func StartHTTPSServer(t *testing.T, handlers []TestRequestHandler, clientCAPath string) string

StartHTTPSServer starts a TCP based HTTPS capable server

func StartHTTPServer added in v14.40.0

func StartHTTPServer(t *testing.T, handlers []TestRequestHandler) string

StartHTTPServer starts a TCP based HTTP server

func StartRetryHTTPServer added in v14.40.0

func StartRetryHTTPServer(t *testing.T, handlers []TestRequestHandler) string

StartRetryHTTPServer starts a TCP based HTTP server with retry capabilities

func StartSocketHTTPServer added in v14.40.0

func StartSocketHTTPServer(t *testing.T, handlers []TestRequestHandler) string

StartSocketHTTPServer starts a socket based HTTP server

Types

type TestGitalyServer

type TestGitalyServer struct {
	ReceivedMD metadata.MD
	pb.UnimplementedSSHServiceServer
}

func StartGitalyServer

func StartGitalyServer(t *testing.T, network string) (string, *TestGitalyServer)

func (*TestGitalyServer) SSHReceivePack

func (s *TestGitalyServer) SSHReceivePack(stream pb.SSHService_SSHReceivePackServer) error

func (*TestGitalyServer) SSHUploadArchive

func (s *TestGitalyServer) SSHUploadArchive(stream pb.SSHService_SSHUploadArchiveServer) error

func (*TestGitalyServer) SSHUploadPack

func (s *TestGitalyServer) SSHUploadPack(stream pb.SSHService_SSHUploadPackServer) error

type TestRequestHandler

type TestRequestHandler struct {
	Path    string
	Handler func(w http.ResponseWriter, r *http.Request)
}

Jump to

Keyboard shortcuts

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