Documentation ¶
Index ¶
- Constants
- func HealthCheckHandler() http.Handler
- func NewHandler(services APIServices) http.Handler
- type APIHandler
- func (h *APIHandler) BodiesDownload(w http.ResponseWriter, r *http.Request)
- func (h *APIHandler) GetSession(w http.ResponseWriter, r *http.Request)
- func (h *APIHandler) HeadersDownload(w http.ResponseWriter, r *http.Request)
- func (h *APIHandler) Log(w http.ResponseWriter, r *http.Request)
- func (h *APIHandler) ReOrg(w http.ResponseWriter, r *http.Request)
- func (h *APIHandler) SyncStages(w http.ResponseWriter, r *http.Request)
- func (h *APIHandler) Tables(w http.ResponseWriter, r *http.Request)
- func (h *APIHandler) UniversalRequest(w http.ResponseWriter, r *http.Request)
- type APIServices
- type BridgeHandler
- type GetVersionResponse
- type SessionResponse
Constants ¶
View Source
const ( NodeId = "nodeId" SessionId = "sessionId" )
Variables ¶
This section is empty.
Functions ¶
func HealthCheckHandler ¶
func NewHandler ¶
func NewHandler(services APIServices) http.Handler
Types ¶
type APIHandler ¶
type APIHandler struct { chi.Router // contains filtered or unexported fields }
func NewAPIHandler ¶
func NewAPIHandler( sessions sessions.CacheService, erigonNode erigon_node.Client, ) *APIHandler
func (*APIHandler) BodiesDownload ¶
func (h *APIHandler) BodiesDownload(w http.ResponseWriter, r *http.Request)
func (*APIHandler) GetSession ¶
func (h *APIHandler) GetSession(w http.ResponseWriter, r *http.Request)
func (*APIHandler) HeadersDownload ¶
func (h *APIHandler) HeadersDownload(w http.ResponseWriter, r *http.Request)
func (*APIHandler) Log ¶
func (h *APIHandler) Log(w http.ResponseWriter, r *http.Request)
func (*APIHandler) ReOrg ¶
func (h *APIHandler) ReOrg(w http.ResponseWriter, r *http.Request)
func (*APIHandler) SyncStages ¶
func (h *APIHandler) SyncStages(w http.ResponseWriter, r *http.Request)
func (*APIHandler) Tables ¶
func (h *APIHandler) Tables(w http.ResponseWriter, r *http.Request)
func (*APIHandler) UniversalRequest ¶
func (h *APIHandler) UniversalRequest(w http.ResponseWriter, r *http.Request)
type APIServices ¶
type APIServices struct { ErigonNode erigon_node.Client StoreSession sessions.CacheService }
type BridgeHandler ¶
type BridgeHandler struct { chi.Router // contains filtered or unexported fields }
func NewBridgeHandler ¶
func NewBridgeHandler(cacheSvc sessions.CacheService) BridgeHandler
func (BridgeHandler) Bridge ¶
func (h BridgeHandler) Bridge(w http.ResponseWriter, r *http.Request)
type GetVersionResponse ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.