Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessTokenResponse ¶
type AuthClaims ¶
type AuthClaims struct { User *UserClaims `json:"user"` jwt.StandardClaims }
type AuthService ¶
type JwtService ¶
type JwtService interface { GenerateJwtToken(user *User) (*AccessTokenResponse, error) VerifyToken(tokenString string) (*AuthClaims, error) }
type URLRepository ¶
type URLService ¶
type User ¶
type User struct { ID gocql.UUID `json:"id,omitempty"` Username string `json:"username,omitempty"` Name string `json:"name,omitempty"` HashedPassword string `json:"-"` Email string `json:"email,omitempty"` CreationDate time.Time `json:"creation_date,omitempty"` LastLogin time.Time `json:"last_login,omitempty"` }
type UserClaims ¶
Click to show internal directories.
Click to hide internal directories.