Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Start ¶
func Start(elrondFacade MainApiHandler, processors ...MiddlewareProcessor) error
Start will boot up the api and appropriate routes, handlers and validators
Types ¶
type MainApiHandler ¶
type MainApiHandler interface { RestApiInterface() string RestAPIServerDebugMode() bool PprofEnabled() bool IsInterfaceNil() bool }
MainApiHandler interface defines methods that can be used from `elrondFacade` context variable
type MiddlewareProcessor ¶
type MiddlewareProcessor interface { MiddlewareHandlerFunc() gin.HandlerFunc IsInterfaceNil() bool }
MiddlewareProcessor defines a processor used internally by the web server when processing requests
Click to show internal directories.
Click to hide internal directories.