docs(proxy): align public comments with AX

Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
Virgil 2026-04-05 00:18:05 +00:00
parent 460aae14fb
commit cf4136c8f0

View file

@ -49,7 +49,7 @@ func getSplitterFactory(mode string) (func(*Config, *EventBus) Splitter, bool) {
return factory, ok
}
// LoadConfig reads and unmarshals a JSON config file.
// LoadConfig("/etc/proxy.json")
//
// cfg, result := LoadConfig("/etc/proxy.json")
// if !result.OK {
@ -69,7 +69,7 @@ func LoadConfig(path string) (*Config, Result) {
return config, config.Validate()
}
// Validate checks that mandatory bind and pool settings are present.
// Validate(&Config{Mode: "nicehash", Bind: []BindAddr{{Host: "0.0.0.0", Port: 3333}}, Pools: []PoolConfig{{URL: "pool.example:3333", Enabled: true}}})
//
// if result := cfg.Validate(); !result.OK {
// return result