Versions in this module Expand all Collapse all v0 v0.1.1 Oct 24, 2023 v0.1.0 Oct 7, 2023 Changes in this version + const MaxReqSize + var SHARD_COUNT = 32 + type BlockTemplate struct + type Endpoint struct + func NewEndpoint(cfg *pool.Port) *Endpoint + func (e *Endpoint) Listen(s *StratumServer) + func (e *Endpoint) ListenTLS(s *StratumServer, t pool.StratumTls) + type ErrorReply struct + Code int + Message string + type GetJobParams struct + Id string + type JSONPushMessage struct + Method string + Params interface{} + Version string + type JSONRpcReq struct + Id *json.RawMessage + Method string + Params *json.RawMessage + type JSONRpcResp struct + Error interface{} + Id *json.RawMessage + Result interface{} + Version string + type Job struct + type JobReply struct + Id string + Job *JobReplyData + Status string + type JobReplyData struct + Algo string + Blob string + Height int64 + JobId string + NextSeedHash string + SeedHash string + Target string + type LoginParams struct + Agent string + Login string + Pass string + type Miner struct + func NewMiner(id string, ip string, maxConcurrency int) *Miner + type MinersMap []*MinersMapShared + func NewMinersMap() MinersMap + func (m *MinersMap) Has(key string) bool + func (m *MinersMap) IsEmpty() bool + func (m *MinersMap) Remove(key string) + func (m *MinersMap) Set(key string, value *Miner) + func (m MinersMap) Count() int + func (m MinersMap) Get(key string) (*Miner, bool) + func (m MinersMap) GetShard(key string) *MinersMapShared + func (m MinersMap) Iter() <-chan Tuple + func (m MinersMap) IterBuffered() <-chan Tuple + type MinersMapShared struct + type Session struct + type StatusReply struct + Status string + type StratumServer struct + func NewStratum(cfg *pool.Config, backend *storage.RedisClient) *StratumServer + func (s *StratumServer) Listen() + func (s *StratumServer) ListenTLS() + func (s *StratumServer) StatsIndex(w http.ResponseWriter, r *http.Request) + type SubmitParams struct + Id string + JobId string + Nonce string + Result string + type Tuple struct + Key string + Val *Miner