Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Package ¶
type Package struct { // Path is path component of vanity url. Path Path // VCSSystem is version control system used by the project. // Usually 'git' or 'hg'. VCSSystem string // VCSURL is the HTTP URL for project's version control system. VCSURL string }
Package defines Go package that has vanity import defined.
func NewPackage ¶ added in v0.1.0
NewPackage returns a new Package given a path, VCS system and VCS URL.
type Server ¶
type Server struct { // Domain is the vanity domain. Domain *string // Config contains settings for vanity packages. Config map[Path]Package }
Server is the actual HTTP server for Go vanity domains.
Click to show internal directories.
Click to hide internal directories.