Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JobList ¶
type JobList struct {
// contains filtered or unexported fields
}
func (*JobList) Latest ¶
func (l *JobList) Latest() *types.StratumJob
func (*JobList) Oldest ¶
func (l *JobList) Oldest() *types.StratumJob
type JobManager ¶
type JobManager struct {
// contains filtered or unexported fields
}
func (*JobManager) AddConn ¶
func (m *JobManager) AddConn(c *stratum.Conn)
func (*JobManager) GetJob ¶
func (m *JobManager) GetJob(id string) (*types.StratumJob, bool)
func (*JobManager) GetPriorJob ¶
func (m *JobManager) GetPriorJob(id string) (*types.StratumJob, bool)
func (*JobManager) LatestJob ¶
func (m *JobManager) LatestJob() *types.StratumJob
func (*JobManager) RemoveConn ¶
func (m *JobManager) RemoveConn(id uint64)
type Options ¶
type Options struct { Chain string PortDiffIdx map[int]int WindowSize int ExtraNonceSize int JobListSize int JobListAgeLimit int SoloEnabled bool VarDiffEnabled bool StreamEnabled bool ForceErrorOnResponse bool Flush bool PollingPeriod time.Duration PingingPeriod time.Duration Metrics *metrics.Client }
Click to show internal directories.
Click to hide internal directories.