handler

package
v0.6.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2026 License: BSD-2-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFilesDeleteHandler

func NewFilesDeleteHandler(g git.Git) libhttp.WithError

NewFilesDeleteHandler returns a WithError handler that deletes a file from the git repository.

func NewFilesDispatchHandler added in v0.6.2

func NewFilesDispatchHandler(getH, listH http.Handler) http.Handler

NewFilesDispatchHandler routes GET /api/v1/files/ to listH when the glob query parameter is present, and to getH otherwise.

func NewFilesGetHandler

func NewFilesGetHandler(g git.Git) libhttp.WithError

NewFilesGetHandler returns a WithError handler that reads a file from the git repository.

func NewFilesListHandler

func NewFilesListHandler(g git.Git) libhttp.WithError

NewFilesListHandler returns a WithError handler that lists files in the git repository matching a glob pattern.

func NewFilesPostHandler

func NewFilesPostHandler(g git.Git) libhttp.WithError

NewFilesPostHandler returns a WithError handler that writes a file to the git repository.

func NewMetricsMiddleware added in v0.6.2

func NewMetricsMiddleware(m metrics.Metrics, next http.Handler) http.Handler

NewMetricsMiddleware wraps next with Prometheus HTTP request counting.

func NewReadinessHandler

func NewReadinessHandler(g git.Git) libhttp.WithError

NewReadinessHandler returns a WithError handler that reports readiness based on git status.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL