package
0.0.0-20241217012540-abd8fb1eec7c
Repository: https://github.com/algo7/day-planner-gpt-data-portal.git
Documentation: pkg.go.dev

# Functions

GetAPIKey returns a page to get the initial API key @Summary Get API Key @ID getAPIKey @Description This endpoint checks if the initial password exists in Redis and if it does, renders the API key form.
GetAuthSuccess returns a page to show that the oauth authentication was successful @ID getAuthSuccess @Summary OAuth2 Success Page @Description This endpoint returns a success message after successful authentication.
GetGmailEmails returns the user's Gmail emails.
GetHome returns the home page.
GetNewTokenFromRefreshToken handles the redirect from the OAuth2 provider @Summary Get New Token From Refresh Token @ID getNewTokenFromRefreshToken @Description This endpoint retrieves a new access token using the refresh token for the specified provider.
GetOAtuh returns the auth URL for the given OAuth2 provider @Summary Get OAuth2 Authentication URL @ID getOAuth @Description This endpoint generates the OAuth2 authentication URL for the specified provider.
GetOAuthCallBack handles the redirect from the OAuth2 provider @Summary OAuth2 Callback Endpoint @ID getOAuthCallBack @Description This endpoint handles the callback from the OAuth2 provider, exchanges the authorization code for an access token, and saves the token.
GetOutlookEmails returns the user's outlook emails.
PostAPIKey generates and returns a new API key @Summary Post API Key @ID postAPIKey @Description This endpoint checks if the initial password exists in Redis, compares it with the password from the form, generates an API key if the passwords match, saves the API key in Redis with a TTL of 7 days, and sets the initial password to an empty string.

# Structs

Response struct.