web

package
v0.0.0-...-564e120 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

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

Jump to

Keyboard shortcuts

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