Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server handles serving of a Git Repository via HTTP
func NewFromRepoFolder ¶
NewFromRepoFolder creates a server for a local folder containing a Git repo
func NewFromURL ¶
NewFromURL creates a server for a given Git URL. The repo is cloned out to a temporary folder. NewFromURL will block until the repo has been cloned.
func (*Server) GetHandler ¶
GetHandler creates an http.Handler to serve requests for content in the server's repo.
Click to show internal directories.
Click to hide internal directories.