Documentation ¶
Overview ¶
Package server implements the git server protocol. For most use cases, the transport-specific implementations should be used.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultLoader = NewFilesystemLoader(osfs.New(""))
DefaultLoader is a filesystem loader ignoring host and resolving paths to /.
View Source
var DefaultServer = NewServer(DefaultLoader)
View Source
var (
ErrUpdateReference = errors.New("failed to update ref")
)
Functions ¶
Types ¶
type Loader ¶
type Loader interface { // Load loads a storer.Storer given a transport.Endpoint. // Returns transport.ErrRepositoryNotFound if the repository does not // exist. Load(ep transport.Endpoint) (storer.Storer, error) }
Loader loads repository's storer.Storer based on an optional host and a path.
func NewFilesystemLoader ¶
func NewFilesystemLoader(base billy.Filesystem) Loader
NewFilesystemLoader creates a Loader that ignores host and resolves paths with a given base filesystem.
Click to show internal directories.
Click to hide internal directories.