Documentation
¶
Index ¶
- func BlockTimeHandler(blockmetaClient *pbblockmeta.Client) http.Handler
- func GetBlockHandler(db eosws.DB) http.Handler
- func GetBlockTransactionsHandler(db eosws.DB) http.Handler
- func GetBlocksHandler(db eosws.DB) http.Handler
- func GetCompletionHandler(completionInstance completion.Completion) http.Handler
- func GetKeyAccounts(fluxClient fluxcli.Client) http.Handler
- func GetTransactionHandler(db eosws.DB) http.Handler
- func HealthzHandler(hub *hub.SubscriptionHub, api *eos.API, blocksStore dstore.Store, db eosws.DB, ...) http.Handler
- func ListTransactionsHandler(db eosws.DB) http.Handler
- func NewReverseProxy(target *url.URL, stripQuerystring bool) *httputil.ReverseProxy
- func PingHandler(w http.ResponseWriter, r *http.Request)
- func SetLogger(logger *zap.Logger)
- func SimpleSearchHandler(db eosws.DB, blockmetaClient *pbblockmeta.Client) http.Handler
- type EOSDB
- type Flux
- type Healthz
- type Hub
- type Merger
- type PushResponse
- type Search
- type TxPushRouter
- type TxPusher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BlockTimeHandler ¶
func BlockTimeHandler(blockmetaClient *pbblockmeta.Client) http.Handler
func GetCompletionHandler ¶
func GetCompletionHandler(completionInstance completion.Completion) http.Handler
func HealthzHandler ¶
func NewReverseProxy ¶
func NewReverseProxy(target *url.URL, stripQuerystring bool) *httputil.ReverseProxy
func PingHandler ¶
func PingHandler(w http.ResponseWriter, r *http.Request)
func SimpleSearchHandler ¶
Types ¶
type Healthz ¶
type Healthz struct {
Errors []string `json:"errors"`
Hub *Hub `json:"hub,omitempty"`
EOSDB *EOSDB `json:"eosdb,omitempty"`
Flux *Flux `json:"flux,omitempty"`
Search *Search `json:"search,omitempty"`
Merger *Merger `json:"merger,omitempty"`
Healthy struct {
Hub *bool `json:"hub,omitempty"`
Merger *bool `json:"merger,omitempty"`
EOSDB *bool `json:"eosdb,omitempty"`
Flux *bool `json:"flux,omitempty"`
Search *bool `json:"search,omitempty"`
} `json:"healthy"`
}
type PushResponse ¶
type PushResponse struct {
TransactionID string `json:"transaction_id"`
BlockID string `json:"block_id"`
BlockNum uint32 `json:"block_num"`
Processed *eos.TransactionTrace `json:"processed"`
}
type TxPushRouter ¶
type TxPushRouter struct {
// contains filtered or unexported fields
}
func NewTxPushRouter ¶
func NewTxPushRouter(dumbAPIProxy http.Handler, pushTransactionHandler http.Handler) *TxPushRouter
func (*TxPushRouter) ServeHTTP ¶
func (t *TxPushRouter) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.