mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
* Add wrapper around sqlstore method GetUserByLogin * Use new method from user service * Fix lint * Fix lint 2 * fix middleware basic auth test * Fix grafana login returning a user by login * Remove GetUserByLogin from store interface * Merge commit
13 lines
301 B
Go
13 lines
301 B
Go
package user
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
type Service interface {
|
|
Create(context.Context, *CreateUserCommand) (*User, error)
|
|
Delete(context.Context, *DeleteUserCommand) error
|
|
GetByID(context.Context, *GetUserByIDQuery) (*User, error)
|
|
GetByLogin(context.Context, *GetUserByLoginQuery) (*User, error)
|
|
}
|