api

package
v0.3.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	CTCSV          = "text/csv"
	CTJSON         = "application/json"
	CTBlocksBinary = "application/x-wrgl-blocks-binary"
	PathCommit     = "/commits/"
)
View Source
const (
	ReceivePackSessionCookie = "receive-pack-session-id"
	CTReceivePackResult      = "application/x-wrgl-receive-pack-result"
)
View Source
const (
	// UploadPackSessionCookie identifies upload-pack session
	UploadPackSessionCookie = "upload-pack-session-id"

	// CTUploadPackResult is content type for upload pack result
	CTUploadPackResult = "application/x-wrgl-upload-pack-result"

	// CTPackfile is content type for packfile
	CTPackfile = "application/x-wrgl-packfile"

	// PurgeUploadPackSessionHeader is a trailer header that is set to "true"
	// at the end of an upload pack session. Upon seeing this any in-between proxy
	// should purge sticky session related to UploadPackSessionCookie
	PurgeUploadPackSessionHeader = "Wrgl-Purge-Upload-Pack-Session"
)
View Source
const PathReceivePack = "/receive-pack/"
View Source
const PathRefs = "/refs/"
View Source
const PathUploadPack = "/upload-pack/"

Variables

This section is empty.

Functions

func NewBadRequestError

func NewBadRequestError(msg string, a ...interface{}) error

Types

type BadRequestError

type BadRequestError struct {
	Message string
}

func (*BadRequestError) Error

func (e *BadRequestError) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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