api

package
v0.0.0-...-2581cb9 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2021 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InfoPack = repo.RefsInfo

used by api/ test

Functions

func Init

func Init()

func Listen

func Listen(host string, port int)

func NewCapturingResponseWriter

func NewCapturingResponseWriter(w http.ResponseWriter, captureBody bool) *capturingWriter

NewCaptureWriter wraps an existing ResponseWrapper into a proxy and caches response body and status written to it

Types

type CapturedResponse

type CapturedResponse struct {
	Status int
	Header http.Header
	Buffer *bytes.Buffer
}

type SubtreesRequest

type SubtreesRequest struct {
	Subtrees []repo.AddSubtree
}

Jump to

Keyboard shortcuts

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