Documentation ¶
Overview ¶
Package web contains the web server and registered routes
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigureHTTPServers ¶
func ConfigureHTTPServers(lifecycle fx.Lifecycle, shutdowner fx.Shutdowner) (*echo.Echo, error)
ConfigureHTTPServers creates an HTTP server with standard middleware and a system HTTP server with health and metrics endpoints returns the echo engine for serving API
func RegisterHandlers ¶
func RegisterHandlers(e *echo.Echo, whService WebhookService) error
RegisterHandlers adds the method handlers for the supported routes
Types ¶
type WebhookService ¶
type WebhookService interface { HandleTestConnection(c echo.Context) error HandleGetOptions(c echo.Context) error HandleValidateProduct(c echo.Context) error HandleRequestCertificate(c echo.Context) error HandleCheckOrder(c echo.Context) error HandleCheckCertificate(c echo.Context) error HandleImportCertificates(c echo.Context) error }
WebhookService interfaces for the connector operation functions
Click to show internal directories.
Click to hide internal directories.