testserver

package
v14.35.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartHttpServer

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

func StartHttpsServer

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

func StartRetryHttpServer added in v14.15.0

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

func StartSocketHttpServer

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

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