testserver

package
v1.9.8-0...-ee3dadf Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 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 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) (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