Package server implements the git server protocol. For most use cases, the transport-specific implementations should be used.
DefaultLoader is a filesystem loader ignoring host and resolving paths to /.
NewClient returns a transport.Transport implementing a client with an embedded server.
NewServer returns a transport.Transport implementing a git server, independent of transport. Each transport must wrap this.
Loader loads repository's storer.Storer based on an optional host and a path.
NewFilesystemLoader creates a Loader that ignores host and resolves paths with a given base filesystem.
MapLoader is a Loader that uses a lookup map of storer.Storer by transport.Endpoint.
Load returns a storer.Storer for given a transport.Endpoint by looking it up in the map. Returns transport.ErrRepositoryNotFound if the endpoint does not exist.