Commit Graph

3 Commits (a3be77a4ba58f6a102217a39a35f56b641e82e0e)

Author SHA1 Message Date
Michael Desa 246e65e598 Generalize chronograf.UsersStore Get method
The `Get` method on the UsersStore was generalize by changing the second
parameter to a struct. This allows the Store to retrieve users by more
than simply their name.

-Get(ctx context.Context, name string) (*User, error)
+Get(ctx context.Context, q UserQuery) (*User, error)
2017-10-18 14:17:42 -04:00
Chris Goller b5ebadaf45 Add tests to sources/users endpoints 2017-02-21 23:54:24 -06:00
Chris Goller 9a80d5bdce Add mock usersstore.
Mocks are back!
2017-02-21 21:36:04 -06:00