Documentation ¶
Index ¶
- Variables
- func MakeAuth(header string, tokens []string) echo.MiddlewareFunc
- func MakeLogger(log *log.Logger) echo.MiddlewareFunc
- func MakeMigrationMiddleware(idb idb.IndexerDb) echo.MiddlewareFunc
- func PrometheusPathMapper404Sink(c echo.Context) string
- func PrometheusPathMapperVerbose(c echo.Context) string
- type MigrationMiddleware
Constants ¶
This section is empty.
Variables ¶
DBUnavailableError is the error returned when a migration is in progress or required.
Functions ¶
func MakeLogger ¶
MakeLogger initializes a logger echo.MiddlewareFunc
func MakeMigrationMiddleware ¶
MakeMigrationMiddleware constructs the migration middleware
func PrometheusPathMapper404Sink ¶
func PrometheusPathMapper404Sink(c echo.Context) string
PrometheusPathMapper404Sink if the status is 404, truncate the path to ensure no personal data is leaked.
func PrometheusPathMapperVerbose ¶
func PrometheusPathMapperVerbose(c echo.Context) string
PrometheusPathMapperVerbose adds query parameters to the path in addition to the PrometheusPathMapper404Sink.
Types ¶
type MigrationMiddleware ¶
type MigrationMiddleware struct {
// contains filtered or unexported fields
}
MigrationMiddleware makes sure a 500 error is returned when the IndexerDb has a migration in progress.
Click to show internal directories.
Click to hide internal directories.