Documentation
¶
Index ¶
- func NewFilesDeleteHandler(g git.Git) libhttp.WithError
- func NewFilesDispatchHandler(getH, listH http.Handler) http.Handler
- func NewFilesGetHandler(g git.Git) libhttp.WithError
- func NewFilesListHandler(g git.Git) libhttp.WithError
- func NewFilesPostHandler(g git.Git) libhttp.WithError
- func NewMetricsMiddleware(m metrics.Metrics, next http.Handler) http.Handler
- func NewReadinessHandler(g git.Git) libhttp.WithError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFilesDeleteHandler ¶
NewFilesDeleteHandler returns a WithError handler that deletes a file from the git repository.
func NewFilesDispatchHandler ¶ added in v0.6.2
NewFilesDispatchHandler routes GET /api/v1/files/ to listH when the glob query parameter is present, and to getH otherwise.
func NewFilesGetHandler ¶
NewFilesGetHandler returns a WithError handler that reads a file from the git repository.
func NewFilesListHandler ¶
NewFilesListHandler returns a WithError handler that lists files in the git repository matching a glob pattern.
func NewFilesPostHandler ¶
NewFilesPostHandler returns a WithError handler that writes a file to the git repository.
func NewMetricsMiddleware ¶ added in v0.6.2
NewMetricsMiddleware wraps next with Prometheus HTTP request counting.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.