Versions in this module Expand all Collapse all v1 v1.1.0 Jul 10, 2019 Changes in this version + const MaxReqSize + const MaxSSLReqSize + 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 Config struct + Api api.ApiConfig + BlockUnlocker payouts.UnlockerConfig + Coin string + CoinName string + Exchange exchange.ExchangeConfig + Name string + NewrelicEnabled bool + NewrelicKey string + NewrelicName string + NewrelicVerbose bool + Payouts payouts.PayoutsConfig + Pplns int64 + Proxy Proxy + Redis storage.Config + Threads int + Upstream []Upstream + UpstreamCheckInterval string + 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 JSONRpcReqNH struct + Id interface{} + Method string + Params interface{} + type JSONRpcResp struct + Error interface{} + Id json.RawMessage + Result interface{} + Version string + type Proxy struct + BehindReverseProxy bool + BlockRefreshInterval string + Difficulty int64 + Enabled bool + HashrateExpiration string + HealthCheck bool + LimitBodySize int64 + LimitHeadersSize int + Listen string + MaxFails int64 + Policy policy.Config + StateUpdateInterval string + Stratum Stratum + StratumNiceHash StratumNiceHash + StratumSSL StratumSSL + type ProxyServer struct + Extranonce string + func NewProxy(cfg *Config, backend *storage.RedisClient) *ProxyServer + func (s *ProxyServer) ListenNiceHashTCP() + func (s *ProxyServer) ListenSSLTCP() + func (s *ProxyServer) ListenTCP() + func (s *ProxyServer) ServeHTTP(w http.ResponseWriter, r *http.Request) + func (s *ProxyServer) Start() + type Session struct + JobDeatils jobDetails + type Stratum struct + Enabled bool + Listen string + MaxConn int + Timeout string + type StratumNiceHash struct + Enabled bool + Listen string + MaxConn int + Timeout string + type StratumReq struct + Worker string + type StratumSSL struct + CertFile string + CertKey string + Enabled bool + Listen string + MaxConn int + Timeout string + type SubmitReply struct + Status string + type Upstream struct + Name string + Timeout string + Url string