package
0.0.0-20240909162913-70ed93a8c156
Repository: https://github.com/blue-davinci/aggregate.git
Documentation: pkg.go.dev
# Functions
Function to check if a permission matches the format "permission:code".
Returns a new model instance.
RssFeedDecoder() will decide which type of URL we are fetching i.e.
No description provided by the author
Define a reusable function to update feed fields from the input.
No description provided by the author
ValidateAnnouncement.
Validation Check that the plaintext api key has been provided and is exactly 26 & 32 bytes long.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ValidateTransactionData will validate the initialization transaction data provided by the client.
No description provided by the author
No description provided by the author
The validateUUID() helper function accepts a UUID and returns a boolean based on whether the UUID is valid or not.
ValidateVerificationData will validate the validation transaction data provided by the client.
# Constants
Define the lengths of the API key and token verification strings.
Define constants for the token scope.
Define Default Image:.
Default Image Urlhttps://images.pexels.com/photos/17300603/pexels-photo-17300603/free-photo-of-a-little-girl-running-in-a-park-next-to-a-man-making-a-large-soap-bubble.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1.
No description provided by the author
No description provided by the author
No description provided by the author
Context timeout.
Define constants for the token scope.
Define constants for the token scope.
Define constants for the token scope.
Define constants for the token scope.
Define constants for the token scope.
# Variables
Declare a new AnonymousUser variable.
No description provided by the author
No description provided by the author
No description provided by the author
Context Error.
No description provided by the author
Define a custom ErrDuplicateEmail error.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Admin statistics represents the statistics for the admin page.
Represents a user struct, with the permissions field being an array of strings.
title, message, created_at, expires_at, updated_at, created_by, is_active.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ChallengedTransactionsOutcome represents the outcome of challenged transactions and the count of each status.
The Comment struct represents what our what our comments look like We will recieve a comment from a user Not IsEditable is a field that will be used to determine if a comment is editable for a specific user.
No description provided by the author
No description provided by the author
CommentStatistics represents the statistics for the comments.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
The Feed struct Represents how our feed struct looks like and is the primary model for the feed data.
No description provided by the author
This structs holds information on which feed is followed by which user and is used to create a follow record in the database.
No description provided by the author
No description provided by the author
This struct will be used to represent the feeds created by a user and will be used to return the feeds created by a user and the number of followers each feed has.
This struct will unify the feeds returned providing space for the IsFollowed member that will be used to show whether a user follows A feed or not.
This struct will be used when returning detailed information fo a specific feed.
Add a SortSafelist field to hold the supported sort values.
This struct will return the list of feeds followed by a user.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Define a new Metadata struct for holding the pagination metadata.
Holds our models.
MultiReport represents various reports with multiple data points, such as revenue by plan, challenged transactions, etc.
NewVsCancelledSubscriptions represents the count of new and canceled subscriptions within a specific period.
NewVsCancelledSubscriptionsReport encapsulates the counts of new and canceled subscriptions in the report.
No description provided by the author
Thi struct represents the entirety of what our notifications look like we will return a notification group currently made up of a Post Notification and a Comment Notification.
No description provided by the author
Payment_Confirmation id, user_id, plan_id, start_date, end_date, status, transaction_id;.
Payment_Plan struct represents all the info we will return in relation to our subscription plans.
Payment History struct represents a user's payment history.
No description provided by the author
Define the PermissionModel type.
This PostComment struct represent the data we will send back to the user We include the username of the user who made the comment and the comment itself.
No description provided by the author
A rejected feed holds info on what and how a feed was rejected and by whom.
RevenueByPaymentMethod represents the total revenue generated by each payment method.
RevenueByPlan represents the revenue generated by each subscription plan.
RSSFeed is a struct that represents what our RSS Feed looks like.
RSSFeedDataModel is a struct that represents what our Post looks like.
This is our main struct that is returned from our post endpoint and returns posts with an isFavorite field.
No description provided by the author
We make a solo struct that will hold a returned Post Favorite.
No description provided by the author
No description provided by the author
struct to hold a struct returned for all available distinct feed.
No description provided by the author
No description provided by the author
No description provided by the author
SingleSubscriptionReport encapsulates various single-point statistics such as total active subscriptions, churn rate, etc.
Subscription struct represents a user's subscription to a plan.
SubscriptionOverTime represents the count of subscriptions over time, grouped by day.
SubscriptionsByCurrency represents the count of subscriptions grouped by currency.
SubscriptionStatistics represents the statistics for the subscriptions.
SubscriptionStats contains all the reports, including single subscription statistics and multiple grouped reports.
No description provided by the author
This struct will represent the Top Creators and contains a User struct and the number of feeds created by the user and the total number of followers, for each created feed, that the user has.
This struct will represent the Top fields and contains a Feed struct and a Follow_Count field which will be used to represent the number of followers a feed has.
No description provided by the author
No description provided by the author
The user struct represents a user account in our application.
No description provided by the author
No description provided by the author
UserStatistics represents the statistics for the users.
No description provided by the author
# Type aliases
No description provided by the author
Make a slice to hold the the permission codes (like "admin:read" and "admin:write") for an admin user.