Documentation ¶
Index ¶
- func MetricsMiddleware(cfg *config.Config) gin.HandlerFunc
- func RollbarMiddleware() gin.HandlerFunc
- type Server
- func (s *Server) GetAccount(c *gin.Context)
- func (s *Server) GetAccountTransactions(c *gin.Context)
- func (s *Server) GetEvents(c *gin.Context)
- func (s *Server) GetHealth(c *gin.Context)
- func (s *Server) GetMiner(c *gin.Context)
- func (s *Server) GetMinerEvents(c *gin.Context)
- func (s *Server) GetMiners(c *gin.Context)
- func (s *Server) GetStatus(c *gin.Context)
- func (s *Server) GetTopMiners(c *gin.Context)
- func (s *Server) GetTransactions(c *gin.Context)
- func (s *Server) Start() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MetricsMiddleware ¶ added in v0.4.0
func MetricsMiddleware(cfg *config.Config) gin.HandlerFunc
MetricsMiddleware logs the execution time of every request
func RollbarMiddleware ¶ added in v0.5.0
func RollbarMiddleware() gin.HandlerFunc
RollbarMiddleware reports panics to Rollbar
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server handles HTTP requests
func (*Server) GetAccount ¶
GetAccount returns account details
func (*Server) GetAccountTransactions ¶
GetAccountTransactions returns account transactions
func (*Server) GetMinerEvents ¶
GetMinerEvents lists storage miner events
func (*Server) GetTopMiners ¶
GetTopMiners lists top 100 storage miners
func (*Server) GetTransactions ¶
GetTransactions lists all transactions
Click to show internal directories.
Click to hide internal directories.