docs(proxy): refine config AX comments
This commit is contained in:
parent
a1f47f5792
commit
9f34bc7200
1 changed files with 5 additions and 2 deletions
|
|
@ -3,7 +3,10 @@ package proxy
|
||||||
// Config is the top-level proxy configuration.
|
// Config is the top-level proxy configuration.
|
||||||
//
|
//
|
||||||
// cfg, result := proxy.LoadConfig("/etc/proxy.json")
|
// 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 {
|
type Config struct {
|
||||||
Mode string `json:"mode"` // "nicehash" or "simple"
|
Mode string `json:"mode"` // "nicehash" or "simple"
|
||||||
Bind []BindAddr `json:"bind"` // listen addresses
|
Bind []BindAddr `json:"bind"` // listen addresses
|
||||||
|
|
@ -81,7 +84,7 @@ type RateLimit struct {
|
||||||
|
|
||||||
// WorkersMode selects the login field used as the worker identity.
|
// WorkersMode selects the login field used as the worker identity.
|
||||||
//
|
//
|
||||||
// proxy.WorkersByRigID
|
// cfg.Workers = proxy.WorkersByRigID
|
||||||
type WorkersMode string
|
type WorkersMode string
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue