DefaultConfig returns a Config with all defaults applied (auth disabled).
()
| 85 | |
| 86 | // DefaultConfig returns a Config with all defaults applied (auth disabled). |
| 87 | func DefaultConfig() *Config { |
| 88 | return &Config{ |
| 89 | Host: "127.0.0.1", |
| 90 | Port: 8080, |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | // Addr returns the "host:port" string suitable for net/http ListenAndServe. |
| 95 | func (c *Config) Addr() string { |
no outgoing calls