Documentation
¶
Index ¶
- func New(repo *chain.Repository, stater *state.Stater, txPool *txpool.TxPool, ...) (http.HandlerFunc, func())
- func RequestLoggerHandler(handler http.Handler, logger log.Logger, enabled *atomic.Bool) http.Handler
- func StartAdminServer(addr string, logLevel *slog.LevelVar, repo *chain.Repository, ...) (string, func(), error)
- func StartMetricsServer(addr string) (string, func(), error)
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New( repo *chain.Repository, stater *state.Stater, txPool *txpool.TxPool, logDB *logdb.LogDB, bft bft.Committer, nw node.Network, forkConfig thor.ForkConfig, config Config, ) (http.HandlerFunc, func())
New return api router
func RequestLoggerHandler ¶ added in v2.1.2
func RequestLoggerHandler(handler http.Handler, logger log.Logger, enabled *atomic.Bool) http.Handler
RequestLoggerHandler returns a http handler to ensure requests are syphoned into the writer
func StartAdminServer ¶ added in v2.1.4
func StartMetricsServer ¶ added in v2.1.4
Types ¶
Source Files
¶
Directories
¶
Path | Synopsis |
---|---|
Distributed under the GNU Lesser General Public License v3.0 software license, see the accompanying file LICENSE or <https://www.gnu.org/licenses/lgpl-3.0.html>
|
Distributed under the GNU Lesser General Public License v3.0 software license, see the accompanying file LICENSE or <https://www.gnu.org/licenses/lgpl-3.0.html> |
Click to show internal directories.
Click to hide internal directories.