Documentation
¶
Index ¶
- type DirEntry
- type DownloadsController
- type GitController
- type HomeController
- type MailingListController
- type Platform
- type SourceController
- func (c *SourceController) Breadcrumbs() []DirEntry
- func (c *SourceController) Entries() []DirEntry
- func (c *SourceController) File() *SourceFile
- func (c SourceController) Handle(r *http.Request) application.Controller
- func (c *SourceController) IsFile() bool
- func (c *SourceController) NotFound() bool
- func (c *SourceController) Path() string
- func (c *SourceController) Setup(app *application.App)
- type SourceFile
- type StarsController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DownloadsController ¶
type DownloadsController struct {
application.BaseController
}
func Downloads ¶
func Downloads() (string, *DownloadsController)
func (DownloadsController) Handle ¶
func (c DownloadsController) Handle(r *http.Request) application.Controller
func (*DownloadsController) Platforms ¶
func (c *DownloadsController) Platforms() []Platform
func (*DownloadsController) ServeFile ¶
func (c *DownloadsController) ServeFile(w http.ResponseWriter, r *http.Request)
func (*DownloadsController) Setup ¶
func (c *DownloadsController) Setup(app *application.App)
type GitController ¶
type GitController struct {
application.BaseController
// contains filtered or unexported fields
}
GitController serves the congo repo over read-only git HTTP protocol.
func (GitController) Handle ¶
func (c GitController) Handle(r *http.Request) application.Controller
Handle returns a request-scoped controller instance.
func (*GitController) Setup ¶
func (c *GitController) Setup(app *application.App)
Setup registers the git smart HTTP routes.
type HomeController ¶
type HomeController struct {
application.BaseController
}
func Home ¶
func Home() (string, *HomeController)
func (HomeController) Handle ¶
func (c HomeController) Handle(r *http.Request) application.Controller
func (*HomeController) Setup ¶
func (c *HomeController) Setup(app *application.App)
type MailingListController ¶
type MailingListController struct {
application.BaseController
}
func MailingList ¶
func MailingList() (string, *MailingListController)
func (MailingListController) Handle ¶
func (c MailingListController) Handle(r *http.Request) application.Controller
func (*MailingListController) Setup ¶
func (c *MailingListController) Setup(app *application.App)
func (*MailingListController) Subscribe ¶
func (c *MailingListController) Subscribe(w http.ResponseWriter, r *http.Request)
type SourceController ¶
type SourceController struct {
application.BaseController
// contains filtered or unexported fields
}
func Source ¶
func Source(sourceFS fs.FS) (string, *SourceController)
Source creates the source browser controller. sourceFS should embed the full Congo source tree.
func (*SourceController) Breadcrumbs ¶
func (c *SourceController) Breadcrumbs() []DirEntry
func (*SourceController) Entries ¶
func (c *SourceController) Entries() []DirEntry
func (*SourceController) File ¶
func (c *SourceController) File() *SourceFile
func (SourceController) Handle ¶
func (c SourceController) Handle(r *http.Request) application.Controller
func (*SourceController) IsFile ¶
func (c *SourceController) IsFile() bool
func (*SourceController) NotFound ¶
func (c *SourceController) NotFound() bool
func (*SourceController) Path ¶
func (c *SourceController) Path() string
func (*SourceController) Setup ¶
func (c *SourceController) Setup(app *application.App)
type SourceFile ¶
type StarsController ¶
type StarsController struct {
application.BaseController
}
func Stars ¶
func Stars() (string, *StarsController)
func (*StarsController) Count ¶
func (c *StarsController) Count() int
func (*StarsController) Create ¶
func (c *StarsController) Create(w http.ResponseWriter, r *http.Request)
func (StarsController) Handle ¶
func (c StarsController) Handle(r *http.Request) application.Controller
func (*StarsController) Setup ¶
func (c *StarsController) Setup(app *application.App)
func (*StarsController) Starred ¶
func (c *StarsController) Starred() bool
Click to show internal directories.
Click to hide internal directories.