Documentation
¶
Index ¶
- func DisableLog()
- func UseLogger(logger slog.Logger)
- type AccountStats
- type Config
- type GUI
- func (ui *GUI) GenerateSecret() []byte
- func (ui *GUI) GetAdmin(w http.ResponseWriter, r *http.Request)
- func (ui *GUI) GetIndex(w http.ResponseWriter, r *http.Request)
- func (ui *GUI) PostAdmin(w http.ResponseWriter, r *http.Request)
- func (ui *GUI) PostBackup(w http.ResponseWriter, r *http.Request)
- func (ui *GUI) PostLogout(w http.ResponseWriter, r *http.Request)
- func (ui *GUI) Run()
- func (ui *GUI) Shutdown()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisableLog ¶
func DisableLog()
DisableLog disables all library log output. Logging output is disabled by default until UseLogger is called.
Types ¶
type AccountStats ¶
type AccountStats struct {
MinedWork []*network.AcceptedWork
Payments []*dividend.Payment
Clients []*network.ClientInfo
}
AccountStats is a snapshot of an accounts contribution to the pool. This comprises of blocks mined by the pool and payments made to the account.
type Config ¶
type Config struct {
Ctx context.Context
SoloPool bool
GUIDir string
CSRFSecret []byte
BackupPass string
GUIPort uint32
TLSCertFile string
TLSKeyFile string
ActiveNet *chaincfg.Params
}
Config represents configuration details for the pool user interface.
type GUI ¶
type GUI struct {
// contains filtered or unexported fields
}
GUI represents the the mining pool user interface.
func (*GUI) GenerateSecret ¶
GenerateSecret generates the CSRF secret.
func (*GUI) PostBackup ¶
func (ui *GUI) PostBackup(w http.ResponseWriter, r *http.Request)
func (*GUI) PostLogout ¶
func (ui *GUI) PostLogout(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.