Documentation ¶
Index ¶
- type SupabaseMiddleware
- func (m *SupabaseMiddleware) AddReport(report types.Report) (types.Report, error)
- func (m *SupabaseMiddleware) DeleteReport(reportID string) error
- func (m *SupabaseMiddleware) ExpireReport(reportID string) error
- func (s SupabaseMiddleware) GetAllBotsForRegion(region string) ([]types.Bot, error)
- func (m *SupabaseMiddleware) GetBot(botID string) (types.Bot, error)
- func (m *SupabaseMiddleware) GetBotForWorkspace(workspaceID string) (types.Bot, error)
- func (m *SupabaseMiddleware) GetIntegrationDataForUser(userID string, integrationID string, workspaceIntegrationID int) (types.IntegrationData, error)
- func (m *SupabaseMiddleware) GetIntegrationDataForWorkspace(workspaceID string, integrationID string) ([]types.IntegrationData, error)
- func (m *SupabaseMiddleware) GetIntegrationForWorkspace(integrationID string, workspaceID string) (types.WorkspaceIntegration, error)
- func (m *SupabaseMiddleware) GetIntegrationsForWorkspace(workspaceID string) ([]types.WorkspaceIntegration, error)
- func (m *SupabaseMiddleware) GetProviderByID(providerID string) (types.Provider, error)
- func (m *SupabaseMiddleware) GetProviderForUser(userID string, providerID string) (types.Provider, error)
- func (m *SupabaseMiddleware) GetProviderFromDiscord(userID string, providerID string) ([]types.Provider, error)
- func (s SupabaseMiddleware) GetRegion(region string) (types.Region, error)
- func (m *SupabaseMiddleware) GetReport(reportID string) (types.Report, error)
- func (m *SupabaseMiddleware) GetReports(guildID string) ([]types.Report, error)
- func (m *SupabaseMiddleware) GetReportsFiltered(filter types.ReportFilter) ([]types.Report, error)
- func (m *SupabaseMiddleware) GetStatistics(botID string) ([]types.BotAnalytics, error)
- func (m *SupabaseMiddleware) SetBot(botID string, settings types.Bot) error
- func (m *SupabaseMiddleware) SetIntegrationDataForUser(userID string, integrationID string, workspaceIntegrationID int, data any) error
- func (m *SupabaseMiddleware) SetIntegrationDataForWorkspace(workspaceID string, integrationID string, data any) error
- func (m *SupabaseMiddleware) UpdateReport(report types.Report) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SupabaseMiddleware ¶
type SupabaseMiddleware struct {
Supabase *supabase.Client
}
func New ¶
func New() SupabaseMiddleware
func (*SupabaseMiddleware) DeleteReport ¶
func (m *SupabaseMiddleware) DeleteReport(reportID string) error
func (*SupabaseMiddleware) ExpireReport ¶
func (m *SupabaseMiddleware) ExpireReport(reportID string) error
func (SupabaseMiddleware) GetAllBotsForRegion ¶
func (s SupabaseMiddleware) GetAllBotsForRegion(region string) ([]types.Bot, error)
func (*SupabaseMiddleware) GetBot ¶
func (m *SupabaseMiddleware) GetBot(botID string) (types.Bot, error)
func (*SupabaseMiddleware) GetBotForWorkspace ¶
func (m *SupabaseMiddleware) GetBotForWorkspace(workspaceID string) (types.Bot, error)
func (*SupabaseMiddleware) GetIntegrationDataForUser ¶
func (m *SupabaseMiddleware) GetIntegrationDataForUser(userID string, integrationID string, workspaceIntegrationID int) (types.IntegrationData, error)
func (*SupabaseMiddleware) GetIntegrationDataForWorkspace ¶
func (m *SupabaseMiddleware) GetIntegrationDataForWorkspace(workspaceID string, integrationID string) ([]types.IntegrationData, error)
func (*SupabaseMiddleware) GetIntegrationForWorkspace ¶
func (m *SupabaseMiddleware) GetIntegrationForWorkspace(integrationID string, workspaceID string) (types.WorkspaceIntegration, error)
func (*SupabaseMiddleware) GetIntegrationsForWorkspace ¶
func (m *SupabaseMiddleware) GetIntegrationsForWorkspace(workspaceID string) ([]types.WorkspaceIntegration, error)
func (*SupabaseMiddleware) GetProviderByID ¶
func (m *SupabaseMiddleware) GetProviderByID(providerID string) (types.Provider, error)
func (*SupabaseMiddleware) GetProviderForUser ¶
func (*SupabaseMiddleware) GetProviderFromDiscord ¶
func (SupabaseMiddleware) GetRegion ¶
func (s SupabaseMiddleware) GetRegion(region string) (types.Region, error)
func (*SupabaseMiddleware) GetReport ¶
func (m *SupabaseMiddleware) GetReport(reportID string) (types.Report, error)
func (*SupabaseMiddleware) GetReports ¶
func (m *SupabaseMiddleware) GetReports(guildID string) ([]types.Report, error)
func (*SupabaseMiddleware) GetReportsFiltered ¶
func (m *SupabaseMiddleware) GetReportsFiltered(filter types.ReportFilter) ([]types.Report, error)
func (*SupabaseMiddleware) GetStatistics ¶
func (m *SupabaseMiddleware) GetStatistics(botID string) ([]types.BotAnalytics, error)
func (*SupabaseMiddleware) SetBot ¶
func (m *SupabaseMiddleware) SetBot(botID string, settings types.Bot) error
func (*SupabaseMiddleware) SetIntegrationDataForUser ¶
func (*SupabaseMiddleware) SetIntegrationDataForWorkspace ¶
func (m *SupabaseMiddleware) SetIntegrationDataForWorkspace(workspaceID string, integrationID string, data any) error
func (*SupabaseMiddleware) UpdateReport ¶
func (m *SupabaseMiddleware) UpdateReport(report types.Report) error
Click to show internal directories.
Click to hide internal directories.