Versions in this module Expand all Collapse all v0 v0.1.0 Oct 7, 2023 Changes in this version + type ApiConfig struct + Blocks int64 + Enabled bool + HashrateLargeWindow string + HashrateWindow string + Listen string + LuckWindow []int + Payments int64 + PurgeInterval string + PurgeOnly bool + StatsCollectInterval string + StatsReservedInterval string + type ApiServer struct + func NewApiServer(cfg *ApiConfig, backend *storage.RedisClient) *ApiServer + func (s *ApiServer) AccountIndex(w http.ResponseWriter, r *http.Request) + func (s *ApiServer) BlocksIndex(w http.ResponseWriter, r *http.Request) + func (s *ApiServer) MinersIndex(w http.ResponseWriter, r *http.Request) + func (s *ApiServer) PaymentsIndex(w http.ResponseWriter, r *http.Request) + func (s *ApiServer) Start() + func (s *ApiServer) StatsIndex(w http.ResponseWriter, r *http.Request) + type Entry struct