handlers

package
v0.0.0-...-2e88c93 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2026 License: AGPL-3.0 Imports: 42 Imported by: 0

Documentation

Overview

SPDX-License-Identifier: AGPL-3.0-only

SPDX-License-Identifier: AGPL-3.0-only

SPDX-License-Identifier: AGPL-3.0-only

SPDX-License-Identifier: AGPL-3.0-only

SPDX-License-Identifier: AGPL-3.0-only

SPDX-License-Identifier: AGPL-3.0-only

SPDX-License-Identifier: AGPL-3.0-only

SPDX-License-Identifier: AGPL-3.0-only

SPDX-License-Identifier: AGPL-3.0-only

SPDX-License-Identifier: AGPL-3.0-only

SPDX-License-Identifier: AGPL-3.0-only

SPDX-License-Identifier: AGPL-3.0-only

SPDX-License-Identifier: AGPL-3.0-only

SPDX-License-Identifier: AGPL-3.0-only

SPDX-License-Identifier: AGPL-3.0-only

SPDX-License-Identifier: AGPL-3.0-only

SPDX-License-Identifier: AGPL-3.0-only

SPDX-License-Identifier: AGPL-3.0-only

SPDX-License-Identifier: AGPL-3.0-only

SPDX-License-Identifier: AGPL-3.0-only

SPDX-License-Identifier: AGPL-3.0-only

SPDX-License-Identifier: AGPL-3.0-only

SPDX-License-Identifier: AGPL-3.0-only

SPDX-License-Identifier: AGPL-3.0-only

SPDX-License-Identifier: AGPL-3.0-only

SPDX-License-Identifier: AGPL-3.0-only

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClassificationResponse

type ClassificationResponse struct {
	ID        string `json:"id"`
	CreatedAt string `json:"created_at"`
	Name      string `json:"name"`
}

type CreateClassificationRequest

type CreateClassificationRequest struct {
	Name string `json:"name" binding:"required"`
}

type CreateExclusionRequest

type CreateExclusionRequest struct {
	SourceID          string `json:"source_id" binding:"required"`
	NetworkInternalID string `json:"network_internal_id" binding:"required"`
}

type CreateRedirectRequest

type CreateRedirectRequest struct {
	SourceID string `json:"source_id" binding:"required"`
	FromPath string `json:"from_path" binding:"required"`
	ToPath   string `json:"to_path" binding:"required"`
}

type CreateTagRequest

type CreateTagRequest struct {
	Name             string  `json:"name" binding:"required"`
	ClassificationID *string `json:"classification_id"`
}

type ErrorResponse

type ErrorResponse struct {
	Error string `json:"error"`
}

type ExclusionResponse

type ExclusionResponse struct {
	ID                string `json:"id"`
	CreatedAt         string `json:"created_at"`
	SourceID          string `json:"source_id"`
	NetworkInternalID string `json:"network_internal_id"`
	Network           string `json:"network"`
	UserName          string `json:"user_name"`
}

type GetSourceChannelsResponse

type GetSourceChannelsResponse struct {
	Network  string   `json:"network"`
	Channels []string `json:"channels"`
}

type Handler

type Handler struct {
	DB      *database.Queries
	DBConn  *sql.DB
	Fetcher *fetcher_common.Client
	Puller  *common.Client
	Config  *config.AppConfig
	Worker  *worker.Worker
	Updater *updater.Updater
}

func NewHandler

func NewHandler(db *database.Queries, dbConn *sql.DB, clientFetch *fetcher_common.Client, clientPull *common.Client, cfg *config.AppConfig, w *worker.Worker, upd *updater.Updater) *Handler

func (*Handler) ActivateSourceHandler

func (h *Handler) ActivateSourceHandler(c *gin.Context)

func (*Handler) ActivateTargetHandler

func (h *Handler) ActivateTargetHandler(c *gin.Context)

func (*Handler) AnalyticsClassificationsHandler

func (h *Handler) AnalyticsClassificationsHandler(c *gin.Context)

func (*Handler) AnalyticsCollaborationsHandler

func (h *Handler) AnalyticsCollaborationsHandler(c *gin.Context)

func (*Handler) AnalyticsDashboardSummaryHandler

func (h *Handler) AnalyticsDashboardSummaryHandler(c *gin.Context)

func (*Handler) AnalyticsEngagementHandler

func (h *Handler) AnalyticsEngagementHandler(c *gin.Context)

func (*Handler) AnalyticsEngagementRateHandler

func (h *Handler) AnalyticsEngagementRateHandler(c *gin.Context)

func (*Handler) AnalyticsFollowRatioHandler

func (h *Handler) AnalyticsFollowRatioHandler(c *gin.Context)

func (*Handler) AnalyticsGSCSiteStatsHandler

func (h *Handler) AnalyticsGSCSiteStatsHandler(c *gin.Context)

func (*Handler) AnalyticsGSCTopPagesHandler

func (h *Handler) AnalyticsGSCTopPagesHandler(c *gin.Context)

func (*Handler) AnalyticsHandler

func (h *Handler) AnalyticsHandler(c *gin.Context)

func (*Handler) AnalyticsHashtagsHandler

func (h *Handler) AnalyticsHashtagsHandler(c *gin.Context)

func (*Handler) AnalyticsMentionsHandler

func (h *Handler) AnalyticsMentionsHandler(c *gin.Context)

func (*Handler) AnalyticsNetworkEfficiencyHandler

func (h *Handler) AnalyticsNetworkEfficiencyHandler(c *gin.Context)

func (*Handler) AnalyticsPerformanceDeviationHandler

func (h *Handler) AnalyticsPerformanceDeviationHandler(c *gin.Context)

func (*Handler) AnalyticsPostTypesHandler

func (h *Handler) AnalyticsPostTypesHandler(c *gin.Context)

func (*Handler) AnalyticsPostingConsistencyHandler

func (h *Handler) AnalyticsPostingConsistencyHandler(c *gin.Context)

func (*Handler) AnalyticsSiteStatsHandler

func (h *Handler) AnalyticsSiteStatsHandler(c *gin.Context)

func (*Handler) AnalyticsTagsHandler

func (h *Handler) AnalyticsTagsHandler(c *gin.Context)

func (*Handler) AnalyticsTimeHandler

func (h *Handler) AnalyticsTimeHandler(c *gin.Context)

func (*Handler) AnalyticsTopPagesHandler

func (h *Handler) AnalyticsTopPagesHandler(c *gin.Context)

func (*Handler) AnalyticsVelocityHandler

func (h *Handler) AnalyticsVelocityHandler(c *gin.Context)

func (*Handler) AnalyticsWebsiteHandler

func (h *Handler) AnalyticsWebsiteHandler(c *gin.Context)

func (*Handler) AnalyticsWordCloudEngagementHandler

func (h *Handler) AnalyticsWordCloudEngagementHandler(c *gin.Context)

func (*Handler) AnalyticsWordCloudHandler

func (h *Handler) AnalyticsWordCloudHandler(c *gin.Context)

func (*Handler) AvatarHandler

func (h *Handler) AvatarHandler(c *gin.Context)

func (*Handler) BackupExportHandler

func (h *Handler) BackupExportHandler(c *gin.Context)

func (*Handler) BackupImportHandler

func (h *Handler) BackupImportHandler(c *gin.Context)

func (*Handler) BackupRestoreHandler

func (h *Handler) BackupRestoreHandler(c *gin.Context)

func (*Handler) CommonData

func (h *Handler) CommonData(c *gin.Context, data gin.H) gin.H

func (*Handler) DeactivateSourceHandler

func (h *Handler) DeactivateSourceHandler(c *gin.Context)

func (*Handler) DeactivateTargetHandler

func (h *Handler) DeactivateTargetHandler(c *gin.Context)

func (*Handler) DeleteSourceHandler

func (h *Handler) DeleteSourceHandler(c *gin.Context)

func (*Handler) DeleteTargetHandler

func (h *Handler) DeleteTargetHandler(c *gin.Context)

func (*Handler) DismissAllLogsHandler

func (h *Handler) DismissAllLogsHandler(c *gin.Context)

func (*Handler) DismissLogHandler

func (h *Handler) DismissLogHandler(c *gin.Context)

func (*Handler) DownloadExportHandler

func (h *Handler) DownloadExportHandler(c *gin.Context)

func (*Handler) ExportDeleteAllHandler

func (h *Handler) ExportDeleteAllHandler(c *gin.Context)

func (*Handler) ExportsHandler

func (h *Handler) ExportsHandler(c *gin.Context)

func (*Handler) ExternalAPIStatsHandler

func (h *Handler) ExternalAPIStatsHandler(c *gin.Context)

func (*Handler) ExternalAPIStatusHandler

func (h *Handler) ExternalAPIStatusHandler(c *gin.Context)

func (*Handler) FacebookCallbackHandler

func (h *Handler) FacebookCallbackHandler(c *gin.Context)

func (*Handler) FacebookLoginHandler

func (h *Handler) FacebookLoginHandler(c *gin.Context)

func (*Handler) FacebookRefreshTokenHandler

func (h *Handler) FacebookRefreshTokenHandler(c *gin.Context)

func (*Handler) GetAuthenticatedUser

func (h *Handler) GetAuthenticatedUser(c *gin.Context) (*database.User, bool)

func (*Handler) GetReleaseNotesHandler

func (h *Handler) GetReleaseNotesHandler(c *gin.Context)

func (*Handler) GetSourceChannelsHandler

func (h *Handler) GetSourceChannelsHandler(c *gin.Context)

func (*Handler) HandleAddTagToPost

func (h *Handler) HandleAddTagToPost(c *gin.Context)

func (*Handler) HandleCreateApiToken

func (h *Handler) HandleCreateApiToken(c *gin.Context)

func (*Handler) HandleCreateClassification

func (h *Handler) HandleCreateClassification(c *gin.Context)

func (*Handler) HandleCreateExclusion

func (h *Handler) HandleCreateExclusion(c *gin.Context)

func (*Handler) HandleCreateRedirect

func (h *Handler) HandleCreateRedirect(c *gin.Context)

func (*Handler) HandleCreateTag

func (h *Handler) HandleCreateTag(c *gin.Context)

func (*Handler) HandleDeleteApiToken

func (h *Handler) HandleDeleteApiToken(c *gin.Context)

func (*Handler) HandleDeleteClassification

func (h *Handler) HandleDeleteClassification(c *gin.Context)

func (*Handler) HandleDeleteExclusion

func (h *Handler) HandleDeleteExclusion(c *gin.Context)

func (*Handler) HandleDeleteRedirect

func (h *Handler) HandleDeleteRedirect(c *gin.Context)

func (*Handler) HandleDeleteTag

func (h *Handler) HandleDeleteTag(c *gin.Context)

func (*Handler) HandleDownloadTagsCSV

func (h *Handler) HandleDownloadTagsCSV(c *gin.Context)

func (*Handler) HandleExportCookies

func (h *Handler) HandleExportCookies(c *gin.Context)

func (*Handler) HandleGetAllPostTagsBulk

func (h *Handler) HandleGetAllPostTagsBulk(c *gin.Context)

func (*Handler) HandleGetApiTokens

func (h *Handler) HandleGetApiTokens(c *gin.Context)

func (*Handler) HandleGetClassifications

func (h *Handler) HandleGetClassifications(c *gin.Context)

func (*Handler) HandleGetExclusions

func (h *Handler) HandleGetExclusions(c *gin.Context)

func (*Handler) HandleGetPostTags

func (h *Handler) HandleGetPostTags(c *gin.Context)

func (*Handler) HandleGetRedirects

func (h *Handler) HandleGetRedirects(c *gin.Context)

func (*Handler) HandleGetSourcesAPI

func (h *Handler) HandleGetSourcesAPI(c *gin.Context)

func (*Handler) HandleGetTags

func (h *Handler) HandleGetTags(c *gin.Context)

func (*Handler) HandleImportCookies

func (h *Handler) HandleImportCookies(c *gin.Context)

func (*Handler) HandleRemoveTagFromPost

func (h *Handler) HandleRemoveTagFromPost(c *gin.Context)

func (*Handler) HandleSetPostTags

func (h *Handler) HandleSetPostTags(c *gin.Context)

func (*Handler) HandleUpdateClassification

func (h *Handler) HandleUpdateClassification(c *gin.Context)

func (*Handler) HandleUpdateTag

func (h *Handler) HandleUpdateTag(c *gin.Context)

func (*Handler) HandleUploadTagsCSV

func (h *Handler) HandleUploadTagsCSV(c *gin.Context)

func (*Handler) HealthCheckHandler

func (h *Handler) HealthCheckHandler(c *gin.Context)

func (*Handler) LoginSubmitHandler

func (h *Handler) LoginSubmitHandler(c *gin.Context)

func (*Handler) LoginViewHandler

func (h *Handler) LoginViewHandler(c *gin.Context)

func (*Handler) LogoutHandler

func (h *Handler) LogoutHandler(c *gin.Context)

func (*Handler) PasskeyLoginBegin

func (h *Handler) PasskeyLoginBegin(c *gin.Context)

func (*Handler) PasskeyLoginFinish

func (h *Handler) PasskeyLoginFinish(c *gin.Context)

func (*Handler) PasskeyRegisterBegin

func (h *Handler) PasskeyRegisterBegin(c *gin.Context)

func (*Handler) PasskeyRegisterFinish

func (h *Handler) PasskeyRegisterFinish(c *gin.Context)

func (*Handler) PasswordSetupSubmitHandler

func (h *Handler) PasswordSetupSubmitHandler(c *gin.Context)

func (*Handler) PasswordSetupViewHandler

func (h *Handler) PasswordSetupViewHandler(c *gin.Context)

func (*Handler) PostsHandler

func (h *Handler) PostsHandler(c *gin.Context)

func (*Handler) RemoveAvatarHandler

func (h *Handler) RemoveAvatarHandler(c *gin.Context)

func (*Handler) ResetSyncSettingsHandler

func (h *Handler) ResetSyncSettingsHandler(c *gin.Context)

func (*Handler) RootHandler

func (h *Handler) RootHandler(c *gin.Context)

func (*Handler) SourcesHandler

func (h *Handler) SourcesHandler(c *gin.Context)

func (*Handler) SourcesSetupHandler

func (h *Handler) SourcesSetupHandler(c *gin.Context)

func (*Handler) StartWorkerHandler

func (h *Handler) StartWorkerHandler(c *gin.Context)

func (*Handler) StopWorkerHandler

func (h *Handler) StopWorkerHandler(c *gin.Context)

func (*Handler) SyncSettingsHandler

func (h *Handler) SyncSettingsHandler(c *gin.Context)

func (*Handler) SyncSourceHandler

func (h *Handler) SyncSourceHandler(c *gin.Context)

func (*Handler) SyncTargetHandler

func (h *Handler) SyncTargetHandler(c *gin.Context)

func (*Handler) TagsHandler

func (h *Handler) TagsHandler(c *gin.Context)

func (*Handler) TargetsHandler

func (h *Handler) TargetsHandler(c *gin.Context)

func (*Handler) TargetsSetupHandler

func (h *Handler) TargetsSetupHandler(c *gin.Context)

func (*Handler) TikTokCheckHandler

func (h *Handler) TikTokCheckHandler(c *gin.Context)

func (*Handler) TikTokLoginHandler

func (h *Handler) TikTokLoginHandler(c *gin.Context)

func (*Handler) TriggerSyncHandler

func (h *Handler) TriggerSyncHandler(c *gin.Context)

func (*Handler) TwoFALoginSubmitHandler

func (h *Handler) TwoFALoginSubmitHandler(c *gin.Context)

func (*Handler) TwoFALoginViewHandler

func (h *Handler) TwoFALoginViewHandler(c *gin.Context)

func (*Handler) TwoFASetupSubmitHandler

func (h *Handler) TwoFASetupSubmitHandler(c *gin.Context)

func (*Handler) TwoFASetupViewHandler

func (h *Handler) TwoFASetupViewHandler(c *gin.Context)

func (*Handler) UpdateLastSeenVersionHandler

func (h *Handler) UpdateLastSeenVersionHandler(c *gin.Context)

func (*Handler) UpdateServerSettingsHandler

func (h *Handler) UpdateServerSettingsHandler(c *gin.Context)

func (*Handler) UpdateSourceChannelsHandler

func (h *Handler) UpdateSourceChannelsHandler(c *gin.Context)

func (*Handler) UpdateSourceTokenHandler

func (h *Handler) UpdateSourceTokenHandler(c *gin.Context)

func (*Handler) UpdateSyncSettingsHandler

func (h *Handler) UpdateSyncSettingsHandler(c *gin.Context)

func (*Handler) UpdateUserIntroCompletedHandler

func (h *Handler) UpdateUserIntroCompletedHandler(c *gin.Context)

func (*Handler) UpdateUserPasswordHandler

func (h *Handler) UpdateUserPasswordHandler(c *gin.Context)

func (*Handler) UpdateUserProfileHandler

func (h *Handler) UpdateUserProfileHandler(c *gin.Context)

func (*Handler) UploadAvatarHandler

func (h *Handler) UploadAvatarHandler(c *gin.Context)

func (*Handler) UserSetupHandler

func (h *Handler) UserSetupHandler(c *gin.Context)

func (*Handler) UserSetupViewHandler

func (h *Handler) UserSetupViewHandler(c *gin.Context)

type PostTagBulkRow

type PostTagBulkRow struct {
	PostID             string `json:"post_id"`
	TagID              string `json:"tag_id"`
	TagName            string `json:"tag_name"`
	ClassificationName string `json:"classification_name"`
}

type PostTagResponse

type PostTagResponse struct {
	ID                 string `json:"id"`
	Name               string `json:"name"`
	ClassificationID   string `json:"classification_id"`
	ClassificationName string `json:"classification_name"`
}

type RedirectResponse

type RedirectResponse struct {
	ID        string `json:"id"`
	SourceID  string `json:"source_id"`
	FromPath  string `json:"from_path"`
	ToPath    string `json:"to_path"`
	CreatedAt string `json:"created_at"`
	Network   string `json:"network"`
	UserName  string `json:"user_name"`
}

type SetPostTagsRequest

type SetPostTagsRequest struct {
	TagIDs []string `json:"tag_ids"`
}

type SuccessResponse

type SuccessResponse struct {
	Message string `json:"message"`
}

type TagResponse

type TagResponse struct {
	ID                 string `json:"id"`
	CreatedAt          string `json:"created_at"`
	Name               string `json:"name"`
	ClassificationID   string `json:"classification_id"`
	ClassificationName string `json:"classification_name"`
}

type TopSourceViewModel

type TopSourceViewModel struct {
	ID                  uuid.UUID
	UserName            string
	Network             string
	TotalInteractions   int64
	TotalViews          int64
	FollowersCount      int64
	ProfileURL          string
	EngagementSupported bool
	ViewsSupported      bool
	FollowersTracked    bool
}

type UpdateChannelsRequest

type UpdateChannelsRequest struct {
	Channels []string `json:"channels" binding:"required"`
}

type UpdateClassificationRequest

type UpdateClassificationRequest struct {
	Name string `json:"name" binding:"required"`
}

type UpdateTagRequest

type UpdateTagRequest struct {
	Name             string  `json:"name" binding:"required"`
	ClassificationID *string `json:"classification_id"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL