api

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Health

func Health(c *fiber.Ctx) error

Health godoc @Summary Health route @Description Health route @Accept json @Produce json @Success 200 {object} Message @Router /v1/healthz [get] @Tags health get route.

func NewMetricsMiddleware

func NewMetricsMiddleware(collector metrics_collector.HttpApiMetrics) fiber.Handler

Types

type Api

type Api interface {
	Listen(port string) error
	Test(req *http.Request, msTimeout ...int) (resp *http.Response, err error)
}

func New

func New(logger *zap.Logger, middlewareCollector metrics.HttpApiMetrics, provider provider.Provider) Api

type Message

type Message struct {
	Message string `json:"message"`
}

type Provider

type Provider interface {
	provider.Provider
}

Directories

Path Synopsis
Package mock_api is a generated GoMock package.
Package mock_api is a generated GoMock package.

Jump to

Keyboard shortcuts

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