Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ByLastModified ¶
type ByLastModified []*Repo
func (ByLastModified) Len ¶
func (b ByLastModified) Len() int
func (ByLastModified) Less ¶
func (b ByLastModified) Less(i, j int) bool
func (ByLastModified) Swap ¶
func (b ByLastModified) Swap(i, j int)
type Repo ¶
type Repo struct { // Path is the repository path relative to RepoBathPath. Path string // Slug is the URL path to the repository, relative to the // DGit root URL. Slug string // Owner is the repository owner as read from the gitweb.owner // Git config key. Owner string // Description is the repository description as read from the // gitweb.description Git config key. Description string // LastModified records the timestamp of the most recent // commit as read from info/web/last-modified within the // repository's Git directory. See [CGit] for prior art. // [CGit]: https://git.zx2c4.com/cgit/tree/contrib/hooks/post-receive.agefile LastModified time.Time // R is the raw repository R *git.Repository }
A repo contains information for a single repository.
Click to show internal directories.
Click to hide internal directories.