Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Response ¶
type Response struct { StatusCode int `json:"status"` Data interface{} `json:"data,omitempty"` Message string `json:"message,omitempty"` }
Response represents the standard response format
type User ¶
type User struct {
// contains filtered or unexported fields
}
User represents the requirements of the service
func (*User) GetAuthUsersMe ¶
GetAuthUsersMe Get the authenticated user's profile (GET /auth/users/me)
func (*User) PostAuthChangePassword ¶
PostAuthChangePassword Change user's password (POST /auth/change-password)
func (*User) PostAuthLogin ¶
PostAuthLogin Authenticate user and get an access token (POST /auth/login)
func (*User) PostAuthLogout ¶
PostAuthLogout Logout the user and invalidate tokens (POST /auth/logout)
func (*User) PostAuthRefresh ¶
PostAuthRefresh Refresh access token using refresh token (POST /auth/refresh)
func (*User) PostAuthRegister ¶
PostAuthRegister Register a new user (POST /auth/register)
Click to show internal directories.
Click to hide internal directories.