docs(proxy): refine config AX comments

This commit is contained in:
Virgil 2026-04-05 01:41:00 +00:00
parent a1f47f5792
commit 9f34bc7200

View file

@ -3,7 +3,10 @@ package proxy
// Config is the top-level proxy configuration.
//
// cfg, result := proxy.LoadConfig("/etc/proxy.json")
// if !result.OK { return result.Error }
// if !result.OK {
// return result.Error
// }
// cfg.Workers = proxy.WorkersByRigID
type Config struct {
Mode string `json:"mode"` // "nicehash" or "simple"
Bind []BindAddr `json:"bind"` // listen addresses
@ -81,7 +84,7 @@ type RateLimit struct {
// WorkersMode selects the login field used as the worker identity.
//
// proxy.WorkersByRigID
// cfg.Workers = proxy.WorkersByRigID
type WorkersMode string
const (