mirror of
https://github.com/stashapp/stash.git
synced 2026-02-08 08:21:32 +01:00
19 lines
407 B
Go
19 lines
407 B
Go
package user
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
type Store interface {
|
|
GetUser(ctx context.Context, username string) (*User, error)
|
|
HasCredentials(ctx context.Context) (bool, error)
|
|
GetPasswordHash(ctx context.Context, username string) (string, error)
|
|
}
|
|
|
|
type Service struct {
|
|
Store Store
|
|
}
|
|
|
|
func (s *Service) GetUser(ctx context.Context, username string) (*User, error) {
|
|
return s.Store.GetUser(ctx, username)
|
|
}
|