Documentation ¶
Index ¶
- type ApiConfig
- type ApiServer
- func (s *ApiServer) AccountIndex(w http.ResponseWriter, r *http.Request)
- func (s *ApiServer) BlocksIndex(w http.ResponseWriter, r *http.Request)
- func (s *ApiServer) FindersIndex(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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiConfig ¶
type ApiConfig struct { Enabled bool `json:"enabled"` Listen string `json:"listen"` PoolCharts string `json:"poolCharts"` PoolChartsNum int64 `json:"poolChartsNum"` NetCharts string `json:"netCharts"` NetChartsNum int64 `json:"netChartsNum"` MinerChartsNum int64 `json:"minerChartsNum"` MinerCharts string `json:"minerCharts"` StatsCollectInterval string `json:"statsCollectInterval"` HashrateWindow string `json:"hashrateWindow"` HashrateLargeWindow string `json:"hashrateLargeWindow"` LuckWindow []int `json:"luckWindow"` Payments int64 `json:"payments"` Blocks int64 `json:"blocks"` PurgeOnly bool `json:"purgeOnly"` PurgeInterval string `json:"purgeInterval"` }
type ApiServer ¶
type ApiServer struct {
// contains filtered or unexported fields
}
func NewApiServer ¶
func NewApiServer(cfg *ApiConfig, backend *storage.RedisClient) *ApiServer
func (*ApiServer) AccountIndex ¶
func (s *ApiServer) AccountIndex(w http.ResponseWriter, r *http.Request)
func (*ApiServer) BlocksIndex ¶
func (s *ApiServer) BlocksIndex(w http.ResponseWriter, r *http.Request)
func (*ApiServer) FindersIndex ¶
func (s *ApiServer) FindersIndex(w http.ResponseWriter, r *http.Request)
func (*ApiServer) MinersIndex ¶
func (s *ApiServer) MinersIndex(w http.ResponseWriter, r *http.Request)
func (*ApiServer) PaymentsIndex ¶
func (s *ApiServer) PaymentsIndex(w http.ResponseWriter, r *http.Request)
func (*ApiServer) StatsIndex ¶
func (s *ApiServer) StatsIndex(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.