 Documentation
      ¶
      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)
    Functions ¶
func NewClient ¶
NewClient returns a transport.Transport implementing a client with an embedded server.
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.
type MapLoader ¶
MapLoader is a Loader that uses a lookup map of storer.Storer by transport.Endpoint.
       Source Files
      ¶
      Source Files
      ¶
    
- loader.go
- server.go
 Click to show internal directories. 
   Click to hide internal directories.