Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Claims ¶
type Claims struct {
jwt.StandardClaims
}
type Repository ¶
type Repository interface { RegisterUser(ctx context.Context, userData model.User) (model.User, error) CheckRegistered(ctx context.Context, username string) (bool, error) GenerateUserHash(ctx context.Context, password string) (hash string, err error) VerifyLogin(ctx context.Context, username, password string, userData model.User) (bool, error) GetUserData(ctx context.Context, username string) (model.User, error) CreateUserSession(ctx context.Context, userID string) (model.UserSession, error) CheckSession(ctx context.Context, data model.UserSession) (userID string, err error) }
func GetRepository ¶
Click to show internal directories.
Click to hide internal directories.