()
| 588 | } |
| 589 | |
| 590 | func (c *Config) checkValidAuth() error { |
| 591 | authConfig := c.jconf.OptionalString("auth", "") |
| 592 | mode, err := auth.FromConfig(authConfig) |
| 593 | if err == nil { |
| 594 | auth.SetMode(mode) |
| 595 | } |
| 596 | return err |
| 597 | } |
| 598 | |
| 599 | func (c *Config) SetReindex(v bool) { |
| 600 | prefixes, _ := c.jconf["prefixes"].(map[string]interface{}) |
no test coverage detected