Documentation
¶
Index ¶
- Variables
- type AuthRepo
- type AuthRepoSvc
- func (svc *AuthRepoSvc) CheckUserAPIKey(ctx context.Context, apiKey string) (user *models.User, err error)
- func (svc *AuthRepoSvc) Read(ctx context.Context, userID string) (*models.User, error)
- func (svc *AuthRepoSvc) SignIn(ctx context.Context, username, password string) (userApiKey *models.UserAPIKey, err error)
- func (svc *AuthRepoSvc) UpsertUser(ctx context.Context, userID *string, input *models.User) (*models.User, error)
- type GameRepo
- type GameRepoSvc
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TblUsers = "users" TblUserAPIKeys = "user_api_keys" )
Functions ¶
This section is empty.
Types ¶
type AuthRepo ¶
type AuthRepo interface { SignIn(ctx context.Context, username, password string) (userApiKey *models.UserAPIKey, err error) CheckUserAPIKey(ctx context.Context, apiKey string) (user *models.User, err error) Read(ctx context.Context, userID string) (*models.User, error) UpsertUser(ctx context.Context, userID *string, input *models.User) (*models.User, error) }
func NewAuthRepoSvc ¶
type AuthRepoSvc ¶
type AuthRepoSvc struct {
// contains filtered or unexported fields
}
func (*AuthRepoSvc) CheckUserAPIKey ¶
func (*AuthRepoSvc) SignIn ¶
func (svc *AuthRepoSvc) SignIn(ctx context.Context, username, password string) (userApiKey *models.UserAPIKey, err error)
type GameRepo ¶
type GameRepo interface { UpsertGame(ctx context.Context, gameID *string, input *models.Game) (*models.Game, error) Read(ctx context.Context, gameID string) (game *models.Game, err error) List(ctx context.Context) (games []*models.Game, err error) }
func NewGameRepoSvc ¶
Click to show internal directories.
Click to hide internal directories.