(cfg *config.Config)
| 12 | ) |
| 13 | |
| 14 | func getUserStore(cfg *config.Config) (storage.UserStore, error) { |
| 15 | if cfg.UsersFile == "" { |
| 16 | return storage.NewUserStore(fmt.Sprintf("http://localhost:%s/", cfg.Port)), nil |
| 17 | } |
| 18 | return storage.StoreFromFile(cfg.UsersFile) |
| 19 | } |
| 20 | |
| 21 | func main() { |
| 22 | cfg := config.FromEnvVars(&config.Config{Port: "9998"}) |
no test coverage detected