Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPServer ¶
type HTTPServer interface { // Run starts the HTTP server. Run() // Shutdown shuts down the HTTP server. Shutdown() }
HTTPServer represents an HTTP server that handles incoming requests.
func NewHTTPServer ¶
func NewHTTPServer( cfg *config.Configuration, logger *slog.Logger, mid mid.Middleware, http1 *handler.GetVersionHTTPHandler, http2 *handler.GetHealthCheckHTTPHandler, http3 *handler.GetGenesisBlockDataHTTPHandler, http4 *handler.GetBlockchainStateHTTPHandler, http5 *handler.ListBlockTransactionsByAddressHTTPHandler, http6 *handler.BlockchainStateChangeEventDTOHTTPHandler, http7 *handler.BlockchainStateServerSentEventsHTTPHandler, http8 *handler.GetBlockDataHTTPHandler, http9 *handler.SignedTransactionSubmissionHTTPHandler, http10 *handler.MempoolTransactionReceiveDTOFromNetworkServiceHTTPHandler, http11 *handler.TokenListByOwnerHTTPHandler, http12 *handler.TokenMintServiceHTTPHandler, ) HTTPServer
NewHTTPServer creates a new HTTP server instance.
Click to show internal directories.
Click to hide internal directories.