Versions in this module Expand all Collapse all v0 v0.1.0 Oct 7, 2023 Changes in this version + const MaxReqSize + type Block struct + func (b Block) Difficulty() *big.Int + func (b Block) HashNoNonce() common.Hash + func (b Block) MixDigest() common.Hash + func (b Block) Nonce() uint64 + func (b Block) NumberU64() uint64 + type BlockTemplate struct + Difficulty *big.Int + GetPendingBlockCache *rpc.GetBlockReplyPart + Header string + Height uint64 + Seed string + Target string + type ClusterNode struct + NodeIp string + NodeName string + type Config struct + Api api.ApiConfig + BlockUnlocker payouts.UnlockerConfig + Cluster []ClusterNode + Coin string + LocalIP string + Log Log + Name string + NewrelicEnabled bool + NewrelicKey string + NewrelicName string + NewrelicVerbose bool + Payouts payouts.PayoutsConfig + Proxy Proxy + Redis storage.Config + RedisFailover storage.ConfigFailover + Threads int + Upstream []Upstream + UpstreamCheckInterval string + UpstreamCoinBase string + UpstreamCoinBaseEncrypted string + type DiffAdjust struct + AdjustInv string + Enabled bool + ExpectShareCount int64 + type ErrorReply struct + Code int + Message string + type JSONPushMessage struct + Id int64 + Result 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 Log struct + LogSetLevel int + type Proxy struct + BehindReverseProxy bool + BlockRefreshInterval string + DiffAdjust DiffAdjust + Difficulty int64 + Enabled bool + HashrateExpiration string + HealthCheck bool + LimitBodySize int64 + LimitHeadersSize int + Listen string + MaxFails int64 + Policy policy.Config + StateUpdateInterval string + Stratum Stratum + StratumMaxConn int + StratumTls StratumTls + StratumVIP StratumVIP + type ProxyServer struct + func NewProxy(cfg *Config, backend *storage.RedisClient) *ProxyServer + func (s *ProxyServer) DumpAllSessionNames() map[string]struct{} + func (s *ProxyServer) ListenTCP(listenEndPoint string, timeOutStr string) + func (s *ProxyServer) ListenTLS(listenEndPoint string, timeOutStr string, tlsCert string, tlsKey string) + func (s *ProxyServer) ServeHTTP(w http.ResponseWriter, r *http.Request) + func (s *ProxyServer) Start() + func (s *ProxyServer) UpdateAllSessionCache() + func (s *ProxyServer) UpdateAllSessionDiff() + type Session struct + type Stratum struct + Enabled bool + Listen string + Timeout string + type StratumReq struct + Worker string + type StratumTls struct + Enabled bool + Listen string + Timeout string + TlsCert string + TlsKey string + type StratumVIP struct + Enabled bool + PortRange string + Timeout string + type SubmitReply struct + Status string + type Upstream struct + Name string + Timeout string + Url string