Documentation ¶
Index ¶
- Constants
- Variables
- func GenerateRandomBytes(n int) ([]byte, error)
- func GenerateRandomString(n int) (string, error)
- func GetMetricTimeline(ctx context.Context, ccClient *clickhouse.Client, projectID int, ...) (payload []*modelInputs.DashboardPayload, err error)
- func GetPasswordAuthUser(email string) *auth.UserInfo
- func GetRetentionDate(retentionPeriodPtr *modelInputs.RetentionPeriod) time.Time
- func IsOptOutTokenValid(adminID int, token string) bool
- func MergeHistogramBucketCounts(bucketCounts []int64, multiple int) []int64
- func MergeHistogramBucketTimes(bucketTimes []time.Time, multiple int) []time.Time
- func PrivateMiddleware(next http.Handler) http.Handler
- func SetupAuthClient(ctx context.Context, store *store.Store, authMode AuthMode, ...)
- func WebsocketInitializationFunction() transport.WebsocketInitFunc
- type APITokenHandler
- type AuthMode
- type Client
- type FirebaseAuthClient
- type LinearAccessTokenResponse
- type LinearCreateAttachmentResponse
- type LinearCreateIssueResponse
- type LinearIssue
- type LinearTeam
- type LinearTeamsResponse
- type LoginCredentials
- type OAuthAuthClient
- type OAuthValidator
- type PasswordAuthClient
- type PromoCode
- type Resolver
- func (r *Resolver) AWSMPCallback(ctx context.Context) func(http.ResponseWriter, *http.Request)
- func (r *Resolver) AddClickUpToWorkspace(ctx context.Context, workspace *model.Workspace, code string) error
- func (r *Resolver) AddCloudflareToWorkspace(ctx context.Context, project *model.Project, token string) error
- func (r *Resolver) AddDiscordToWorkspace(ctx context.Context, workspace *model.Workspace, code string) error
- func (r *Resolver) AddGitHubToWorkspace(ctx context.Context, workspace *model.Workspace, code string) error
- func (r *Resolver) AddGitlabToWorkspace(ctx context.Context, workspace *model.Workspace, code string) error
- func (r *Resolver) AddHeightToWorkspace(ctx context.Context, workspace *model.Workspace, code string) error
- func (r *Resolver) AddHerokuToProject(ctx context.Context, project *model.Project, token string) error
- func (r *Resolver) AddJiraToWorkspace(ctx context.Context, workspace *model.Workspace, code string) error
- func (r *Resolver) AddLinearToWorkspace(workspace *model.Workspace, code string) error
- func (r *Resolver) AddMicrosoftTeamsToWorkspace(ctx context.Context, workspace *model.Workspace, code string) error
- func (r *Resolver) AddSlackToWorkspace(ctx context.Context, workspace *model.Workspace, code string) error
- func (r *Resolver) AddVercelToWorkspace(workspace *model.Workspace, code string) error
- func (r *Resolver) AllWorkspaceSettings() generated.AllWorkspaceSettingsResolver
- func (r *Resolver) AssetHandler(w http.ResponseWriter, req *http.Request)
- func (r *Resolver) CommentReply() generated.CommentReplyResolver
- func (r *Resolver) CreateClickUpTaskAndAttachment(ctx context.Context, workspace *model.Workspace, ...) error
- func (r *Resolver) CreateDefaultDashboard(ctx context.Context, projectID int) (*model.VisualizationsResponse, error)
- func (r *Resolver) CreateErrorTag(ctx context.Context, title string, description string) (*model.ErrorTag, error)
- func (r *Resolver) CreateGitHubTaskAndAttachment(ctx context.Context, workspace *model.Workspace, ...) error
- func (r *Resolver) CreateGitlabTaskAndAttachment(ctx context.Context, workspace *model.Workspace, ...) error
- func (r *Resolver) CreateHeightTaskAndAttachment(ctx context.Context, workspace *model.Workspace, ...) error
- func (r *Resolver) CreateInviteLink(workspaceID int, email *string, role string, shouldExpire bool, ...) *model.WorkspaceInviteLink
- func (r *Resolver) CreateIssueAttachment(ctx context.Context, attachment *model.ExternalAttachment, issueTitle string, ...) error
- func (r *Resolver) CreateJiraTaskAndAttachment(ctx context.Context, workspace *model.Workspace, ...) error
- func (r *Resolver) CreateLinearAttachment(accessToken string, issueID string, title string, subtitle string, url string) (*LinearCreateAttachmentResponse, error)
- func (r *Resolver) CreateLinearAttachmentForExistingIssue(ctx context.Context, workspace *model.Workspace, ...) error
- func (r *Resolver) CreateLinearIssue(accessToken string, teamID string, title string, description string) (*LinearCreateIssueResponse, error)
- func (r *Resolver) CreateLinearIssueAndAttachment(ctx context.Context, workspace *model.Workspace, ...) error
- func (r *Resolver) CreateSlackBlocks(admin *model.Admin, viewLink, commentText, action string, subjectScope string, ...) ([]slack.Block, *slack.Attachment)
- func (r *Resolver) CreateSlackChannel(workspaceId int, name string) (*model.SlackChannel, error)
- func (r *Resolver) ErrorAlert() generated.ErrorAlertResolver
- func (r *Resolver) ErrorComment() generated.ErrorCommentResolver
- func (r *Resolver) ErrorGroup() generated.ErrorGroupResolver
- func (r *Resolver) ErrorObject() generated.ErrorObjectResolver
- func (r *Resolver) GenerateRandomStringURLSafe(n int) (string, error)
- func (r *Resolver) GetAWSMarketPlaceWorkspace(ctx context.Context, workspaceID int) (*model.Workspace, error)
- func (r *Resolver) GetErrorTags() ([]*model.ErrorTag, error)
- func (r *Resolver) GetGitHubIssueLabels(ctx context.Context, workspace *model.Workspace, repository string) ([]string, error)
- func (r *Resolver) GetGitHubRepos(ctx context.Context, workspace *model.Workspace) ([]*modelInputs.GitHubRepo, error)
- func (r *Resolver) GetGitlabProjects(ctx context.Context, workspace *model.Workspace) ([]*modelInputs.GitlabProject, error)
- func (r *Resolver) GetJiraProjects(ctx context.Context, workspace *model.Workspace) ([]*modelInputs.JiraProject, error)
- func (r *Resolver) GetLinearAccessToken(code string, redirectURL string, clientID string, clientSecret string) (LinearAccessTokenResponse, error)
- func (r *Resolver) GetLinearTeams(accessToken string) (*LinearTeamsResponse, error)
- func (r *Resolver) GetProjectRetentionDate(projectId int) (time.Time, error)
- func (r *Resolver) GetSessionChunk(ctx context.Context, sessionID int, ts int) (chunkIdx int, chunkTs int)
- func (r *Resolver) GetSlackChannelsFromSlack(ctx context.Context, workspaceId int) (*[]model.SlackChannel, int, error)
- func (r *Resolver) GetWorkspace(workspaceID int) (*model.Workspace, error)
- func (r *Resolver) Graph() generated.GraphResolver
- func (r *Resolver) IsInviteLinkExpired(inviteLink *model.WorkspaceInviteLink) bool
- func (r *Resolver) LogAlert() generated.LogAlertResolver
- func (r *Resolver) MakeLinearGraphQLRequest(accessToken string, body string) ([]byte, error)
- func (r *Resolver) MarshalAlertEmails(emails []*string) (*string, error)
- func (r *Resolver) MarshalEnvironments(environments []*string) (*string, error)
- func (r *Resolver) MarshalSlackChannelsToSanitizedSlackChannels(slackChannels []*modelInputs.SanitizedSlackChannelInput) (*string, error)
- func (r *Resolver) MatchErrorTag(ctx context.Context, query string) ([]*modelInputs.MatchedErrorTag, error)
- func (r *Resolver) MatchedErrorObject() generated.MatchedErrorObjectResolver
- func (r *Resolver) MetricMonitor() generated.MetricMonitorResolver
- func (r *Resolver) MicrosoftTeamsBotEndpoint(w http.ResponseWriter, req *http.Request)
- func (r *Resolver) Mutation() generated.MutationResolver
- func (r *Resolver) ProjectJWTHandler(w http.ResponseWriter, req *http.Request)
- func (r *Resolver) Query() generated.QueryResolver
- func (r *Resolver) RemoveClickUpFromWorkspace(ctx context.Context, workspace *model.Workspace) error
- func (r *Resolver) RemoveDiscordFromWorkspace(ctx context.Context, workspace *model.Workspace) error
- func (r *Resolver) RemoveGitHubFromWorkspace(ctx context.Context, workspace *model.Workspace) error
- func (r *Resolver) RemoveGitlabFromWorkspace(ctx context.Context, workspace *model.Workspace) error
- func (r *Resolver) RemoveIntegrationFromWorkspaceAndProjects(ctx context.Context, workspace *model.Workspace, ...) error
- func (r *Resolver) RemoveJiraFromWorkspace(ctx context.Context, workspace *model.Workspace) error
- func (r *Resolver) RemoveLinearFromWorkspace(ctx context.Context, workspace *model.Workspace) error
- func (r *Resolver) RemoveMicrosoftTeamsFromWorkspace(ctx context.Context, workspace *model.Workspace, projectID int) error
- func (r *Resolver) RemoveSlackFromWorkspace(ctx context.Context, workspace *model.Workspace, projectID int) error
- func (r *Resolver) RemoveVercelFromWorkspace(ctx context.Context, workspace *model.Workspace) error
- func (r *Resolver) RemoveZapierFromWorkspace(ctx context.Context, project *model.Project) error
- func (r *Resolver) ResolveAWSMarketplaceToken(ctx context.Context, token string) (*marketplacemetering.ResolveCustomerOutput, error)
- func (r *Resolver) RevokeLinearAccessToken(accessToken string) error
- func (r *Resolver) SavedSegment() generated.SavedSegmentResolver
- func (r *Resolver) SearchGitHubIssues(ctx context.Context, workspace *model.Workspace, query string) ([]*modelInputs.IssuesSearchResult, error)
- func (r *Resolver) SearchGitlabIssues(ctx context.Context, workspace *model.Workspace, query string) ([]*modelInputs.IssuesSearchResult, error)
- func (r *Resolver) SearchHeightIssues(ctx context.Context, workspace *model.Workspace, query string) ([]*modelInputs.IssuesSearchResult, error)
- func (r *Resolver) SearchJiraIssues(ctx context.Context, workspace *model.Workspace, query string) ([]*modelInputs.IssuesSearchResult, error)
- func (r *Resolver) SearchLinearIssues(accessToken string, searchTerm string) ([]*modelInputs.IssuesSearchResult, error)
- func (r *Resolver) SendAdminInviteImpl(adminName string, projectOrWorkspaceName string, inviteLink string, ...) (*string, error)
- func (r *Resolver) SendEmailAlert(tos []*mail.Email, ccs []*mail.Email, authorName string, viewLink string, ...) error
- func (r *Resolver) SendSlackAlertToUser(ctx context.Context, workspace *model.Workspace, admin *model.Admin, ...) error
- func (r *Resolver) SendSlackThreadReply(ctx context.Context, workspace *model.Workspace, admin *model.Admin, ...) error
- func (r *Resolver) SendWorkspaceRequestEmail(fromName string, fromEmail string, workspaceName string, toName string, ...) (*string, error)
- func (r *Resolver) Service() generated.ServiceResolver
- func (r *Resolver) Session() generated.SessionResolver
- func (r *Resolver) SessionAlert() generated.SessionAlertResolver
- func (r *Resolver) SessionComment() generated.SessionCommentResolver
- func (r *Resolver) SetDefaultRetention(workspace *model.Workspace)
- func (r *Resolver) SetErrorFrequenciesClickhouse(ctx context.Context, projectID int, errorGroups []*model.ErrorGroup, ...) error
- func (r *Resolver) SetErrorGroupOccurrences(ctx context.Context, projectID int, errorGroups []*model.ErrorGroup) error
- func (r *Resolver) SlackEventsWebhook(ctx context.Context, signingSecret string) func(w http.ResponseWriter, req *http.Request)
- func (r *Resolver) StripeWebhook(ctx context.Context, endpointSecret string) func(http.ResponseWriter, *http.Request)
- func (r *Resolver) Subscription() generated.SubscriptionResolver
- func (r *Resolver) TimelineIndicatorEvent() generated.TimelineIndicatorEventResolver
- func (r *Resolver) UnmarshalStackTrace(stackTraceString string) ([]*modelInputs.ErrorTrace, error)
- func (r *Resolver) UpdateErrorTags(ctx context.Context) error
- func (r *Resolver) UpsertDiscordChannel(workspaceId int, name string) (*model.DiscordChannel, error)
- func (r *Resolver) Visualization() generated.VisualizationResolver
- type SavedSegmentParams
- type SearchIssuesResponse
- type SimpleAuthClient
- type Tracer
Constants ¶
const ErrorGroupLookbackDays = 7
const MaxDownloadSize = 32 * 1024 * 1024 // 32MB
const SessionActiveMetricName = "sessionActiveLength"
const SessionProcessedMetricName = "sessionProcessed"
Variables ¶
var ( WhitelistedUID = env.Config.AuthWhitelistedAccount JwtAccessSecret = env.Config.AuthJWTAccessToken FrontendURI = env.Config.FrontendUri )
var AuthenticationError = errors.New("401 - AuthenticationError")
var AuthorizationError = errors.New("403 - AuthorizationError")
var BytesConversion = map[string]int64{
"b": 1,
"kb": 1024,
"mb": 1024 * 1024,
"gb": 1024 * 1024 * 1024,
"tb": 1024 * 1024 * 1024 * 1024,
"pb": 1024 * 1024 * 1024 * 1024 * 1024,
}
var EnterpriseAuthModes = []AuthMode{Firebase, OAuth}
var HighlightAdminEmailDomains = []string{"@highlight.run", "@highlight.io"}
var PromoCodes = map[string]PromoCode{ "WEBDEVSIMPLIFIED": { TrialDays: 60, ValidUntil: time.Date(2023, time.May, 15, 0, 0, 0, 0, time.UTC), }, "CATCHMYERRORS": { TrialDays: 7, ValidUntil: time.Date(2023, time.January, 17, 0, 0, 0, 0, time.UTC), }, "SIMPLIFIEDHIGHLIGHT": { TrialDays: 60, ValidUntil: time.Date(2023, time.August, 7, 0, 0, 0, 0, time.UTC), }, "USEGOLANG": { TrialDays: 14, ValidUntil: time.Date(2024, time.January, 1, 0, 0, 0, 0, time.UTC), }, }
Functions ¶
func GenerateRandomBytes ¶
GenerateRandomBytes returns securely generated random bytes. It will return an error if the system's secure random number generator fails to function correctly, in which case the caller should not continue.
func GenerateRandomString ¶
GenerateRandomString returns a securely generated random string. It will return an error if the system's secure random number generator fails to function correctly, in which case the caller should not continue.
func GetMetricTimeline ¶
func GetMetricTimeline(ctx context.Context, ccClient *clickhouse.Client, projectID int, metricName string, params modelInputs.DashboardParamsInput) (payload []*modelInputs.DashboardPayload, err error)
func GetPasswordAuthUser ¶
func GetRetentionDate ¶
func GetRetentionDate(retentionPeriodPtr *modelInputs.RetentionPeriod) time.Time
func IsOptOutTokenValid ¶
func SetupAuthClient ¶
func WebsocketInitializationFunction ¶
func WebsocketInitializationFunction() transport.WebsocketInitFunc
Types ¶
type Client ¶
type FirebaseAuthClient ¶
type FirebaseAuthClient struct {
// contains filtered or unexported fields
}
func NewFirebaseClient ¶
func NewFirebaseClient(ctx context.Context) *FirebaseAuthClient
func (*FirebaseAuthClient) GetUser ¶
func (c *FirebaseAuthClient) GetUser(ctx context.Context, uid string) (*auth.UserRecord, error)
func (*FirebaseAuthClient) SetupListeners ¶
func (c *FirebaseAuthClient) SetupListeners(_ chi.Router)
type LinearIssue ¶
type LinearTeam ¶
type LinearTeamsResponse ¶
type LinearTeamsResponse struct { Data struct { Teams struct { Nodes []LinearTeam `json:"nodes"` } `json:"teams"` } `json:"data"` }
type LoginCredentials ¶
type OAuthAuthClient ¶
type OAuthAuthClient struct {
// contains filtered or unexported fields
}
func NewOAuthClient ¶
func NewOAuthClient(ctx context.Context, store *store.Store) *OAuthAuthClient
func (*OAuthAuthClient) GetUser ¶
func (c *OAuthAuthClient) GetUser(ctx context.Context, uid string) (*auth.UserRecord, error)
func (*OAuthAuthClient) SetupListeners ¶
func (c *OAuthAuthClient) SetupListeners(r chi.Router)
type OAuthValidator ¶
type OAuthValidator interface { graphql.HandlerExtension graphql.FieldInterceptor }
func NewGraphqlOAuthValidator ¶
func NewGraphqlOAuthValidator(store *store.Store) OAuthValidator
type PasswordAuthClient ¶
type PasswordAuthClient struct{}
func (*PasswordAuthClient) GetUser ¶
func (c *PasswordAuthClient) GetUser(_ context.Context, uid string) (*auth.UserRecord, error)
func (*PasswordAuthClient) SetupListeners ¶
func (c *PasswordAuthClient) SetupListeners(r chi.Router)
type Resolver ¶
type Resolver struct { DB *gorm.DB Tracer trace.Tracer MailClient *sendgrid.Client PricingClient *pricing.Client AWSMPClient *marketplacemetering.Client StorageClient storage.Client LambdaClient *lambda.Client ClearbitClient *clearbit.Client PrivateWorkerPool *workerpool.WorkerPool SubscriptionWorkerPool *workerpool.WorkerPool RH *resthooks.Resthook Redis *redis.Client StepFunctions *stepfunctions.Client OAuthServer *oauth.Server IntegrationsClient *integrations.Client ClickhouseClient *clickhouse.Client Store *store.Store DataSyncQueue kafka_queue.MessageQueue TracesQueue kafka_queue.MessageQueue EmbeddingsClient embeddings.Client OpenAiClient openai_client.OpenAiInterface }
func (*Resolver) AWSMPCallback ¶
func (*Resolver) AddClickUpToWorkspace ¶
func (*Resolver) AddCloudflareToWorkspace ¶
func (*Resolver) AddDiscordToWorkspace ¶
func (*Resolver) AddGitHubToWorkspace ¶
func (*Resolver) AddGitlabToWorkspace ¶
func (*Resolver) AddHeightToWorkspace ¶
func (*Resolver) AddHerokuToProject ¶
func (*Resolver) AddJiraToWorkspace ¶
func (*Resolver) AddLinearToWorkspace ¶
func (*Resolver) AddMicrosoftTeamsToWorkspace ¶
func (*Resolver) AddSlackToWorkspace ¶
func (*Resolver) AddVercelToWorkspace ¶
func (*Resolver) AllWorkspaceSettings ¶
func (r *Resolver) AllWorkspaceSettings() generated.AllWorkspaceSettingsResolver
AllWorkspaceSettings returns generated.AllWorkspaceSettingsResolver implementation.
func (*Resolver) AssetHandler ¶
func (r *Resolver) AssetHandler(w http.ResponseWriter, req *http.Request)
func (*Resolver) CommentReply ¶
func (r *Resolver) CommentReply() generated.CommentReplyResolver
CommentReply returns generated.CommentReplyResolver implementation.
func (*Resolver) CreateClickUpTaskAndAttachment ¶
func (*Resolver) CreateDefaultDashboard ¶
func (*Resolver) CreateErrorTag ¶
func (*Resolver) CreateGitHubTaskAndAttachment ¶
func (r *Resolver) CreateGitHubTaskAndAttachment( ctx context.Context, workspace *model.Workspace, attachment *model.ExternalAttachment, issueTitle string, issueDescription string, repo *string, tags []*modelInputs.SessionCommentTagInput, ) error
func (*Resolver) CreateGitlabTaskAndAttachment ¶
func (*Resolver) CreateHeightTaskAndAttachment ¶
func (*Resolver) CreateInviteLink ¶
func (*Resolver) CreateIssueAttachment ¶
func (*Resolver) CreateJiraTaskAndAttachment ¶
func (*Resolver) CreateLinearAttachment ¶
func (*Resolver) CreateLinearAttachmentForExistingIssue ¶
func (*Resolver) CreateLinearIssue ¶
func (*Resolver) CreateLinearIssueAndAttachment ¶
func (*Resolver) CreateSlackBlocks ¶
func (*Resolver) CreateSlackChannel ¶
func (*Resolver) ErrorAlert ¶
func (r *Resolver) ErrorAlert() generated.ErrorAlertResolver
ErrorAlert returns generated.ErrorAlertResolver implementation.
func (*Resolver) ErrorComment ¶
func (r *Resolver) ErrorComment() generated.ErrorCommentResolver
ErrorComment returns generated.ErrorCommentResolver implementation.
func (*Resolver) ErrorGroup ¶
func (r *Resolver) ErrorGroup() generated.ErrorGroupResolver
ErrorGroup returns generated.ErrorGroupResolver implementation.
func (*Resolver) ErrorObject ¶
func (r *Resolver) ErrorObject() generated.ErrorObjectResolver
ErrorObject returns generated.ErrorObjectResolver implementation.
func (*Resolver) GenerateRandomStringURLSafe ¶
GenerateRandomStringURLSafe returns a URL-safe, base64 encoded securely generated random string. It will return an error if the system's secure random number generator fails to function correctly, in which case the caller should not continue.
func (*Resolver) GetAWSMarketPlaceWorkspace ¶
func (*Resolver) GetGitHubIssueLabels ¶
func (*Resolver) GetGitHubRepos ¶
func (r *Resolver) GetGitHubRepos( ctx context.Context, workspace *model.Workspace, ) ([]*modelInputs.GitHubRepo, error)
func (*Resolver) GetGitlabProjects ¶
func (r *Resolver) GetGitlabProjects( ctx context.Context, workspace *model.Workspace, ) ([]*modelInputs.GitlabProject, error)
func (*Resolver) GetJiraProjects ¶
func (r *Resolver) GetJiraProjects( ctx context.Context, workspace *model.Workspace, ) ([]*modelInputs.JiraProject, error)
func (*Resolver) GetLinearAccessToken ¶
func (*Resolver) GetLinearTeams ¶
func (r *Resolver) GetLinearTeams(accessToken string) (*LinearTeamsResponse, error)
func (*Resolver) GetProjectRetentionDate ¶
func (*Resolver) GetSessionChunk ¶
func (r *Resolver) GetSessionChunk(ctx context.Context, sessionID int, ts int) (chunkIdx int, chunkTs int)
GetSessionChunk Given a session and session-relative timestamp, finds the chunk and chunk-relative timestamp.
func (*Resolver) GetSlackChannelsFromSlack ¶
func (*Resolver) GetWorkspace ¶
func (*Resolver) Graph ¶
func (r *Resolver) Graph() generated.GraphResolver
Graph returns generated.GraphResolver implementation.
func (*Resolver) IsInviteLinkExpired ¶
func (r *Resolver) IsInviteLinkExpired(inviteLink *model.WorkspaceInviteLink) bool
func (*Resolver) LogAlert ¶
func (r *Resolver) LogAlert() generated.LogAlertResolver
LogAlert returns generated.LogAlertResolver implementation.
func (*Resolver) MakeLinearGraphQLRequest ¶
func (*Resolver) MarshalAlertEmails ¶
func (*Resolver) MarshalEnvironments ¶
func (*Resolver) MarshalSlackChannelsToSanitizedSlackChannels ¶
func (r *Resolver) MarshalSlackChannelsToSanitizedSlackChannels(slackChannels []*modelInputs.SanitizedSlackChannelInput) (*string, error)
func (*Resolver) MatchErrorTag ¶
func (r *Resolver) MatchErrorTag(ctx context.Context, query string) ([]*modelInputs.MatchedErrorTag, error)
func (*Resolver) MatchedErrorObject ¶
func (r *Resolver) MatchedErrorObject() generated.MatchedErrorObjectResolver
MatchedErrorObject returns generated.MatchedErrorObjectResolver implementation.
func (*Resolver) MetricMonitor ¶
func (r *Resolver) MetricMonitor() generated.MetricMonitorResolver
MetricMonitor returns generated.MetricMonitorResolver implementation.
func (*Resolver) MicrosoftTeamsBotEndpoint ¶
func (r *Resolver) MicrosoftTeamsBotEndpoint(w http.ResponseWriter, req *http.Request)
func (*Resolver) Mutation ¶
func (r *Resolver) Mutation() generated.MutationResolver
Mutation returns generated.MutationResolver implementation.
func (*Resolver) ProjectJWTHandler ¶
func (r *Resolver) ProjectJWTHandler(w http.ResponseWriter, req *http.Request)
func (*Resolver) Query ¶
func (r *Resolver) Query() generated.QueryResolver
Query returns generated.QueryResolver implementation.
func (*Resolver) RemoveClickUpFromWorkspace ¶
func (*Resolver) RemoveDiscordFromWorkspace ¶
func (*Resolver) RemoveGitHubFromWorkspace ¶
func (*Resolver) RemoveGitlabFromWorkspace ¶
func (*Resolver) RemoveIntegrationFromWorkspaceAndProjects ¶
func (r *Resolver) RemoveIntegrationFromWorkspaceAndProjects(ctx context.Context, workspace *model.Workspace, integrationType modelInputs.IntegrationType) error
func (*Resolver) RemoveJiraFromWorkspace ¶
func (*Resolver) RemoveLinearFromWorkspace ¶
func (*Resolver) RemoveMicrosoftTeamsFromWorkspace ¶
func (*Resolver) RemoveSlackFromWorkspace ¶
func (*Resolver) RemoveVercelFromWorkspace ¶
func (*Resolver) RemoveZapierFromWorkspace ¶
func (*Resolver) ResolveAWSMarketplaceToken ¶
func (r *Resolver) ResolveAWSMarketplaceToken(ctx context.Context, token string) (*marketplacemetering.ResolveCustomerOutput, error)
func (*Resolver) RevokeLinearAccessToken ¶
func (*Resolver) SavedSegment ¶
func (r *Resolver) SavedSegment() generated.SavedSegmentResolver
SavedSegment returns generated.SavedSegmentResolver implementation.
func (*Resolver) SearchGitHubIssues ¶
func (r *Resolver) SearchGitHubIssues( ctx context.Context, workspace *model.Workspace, query string, ) ([]*modelInputs.IssuesSearchResult, error)
func (*Resolver) SearchGitlabIssues ¶
func (r *Resolver) SearchGitlabIssues( ctx context.Context, workspace *model.Workspace, query string, ) ([]*modelInputs.IssuesSearchResult, error)
func (*Resolver) SearchHeightIssues ¶
func (r *Resolver) SearchHeightIssues( ctx context.Context, workspace *model.Workspace, query string, ) ([]*modelInputs.IssuesSearchResult, error)
func (*Resolver) SearchJiraIssues ¶
func (r *Resolver) SearchJiraIssues( ctx context.Context, workspace *model.Workspace, query string, ) ([]*modelInputs.IssuesSearchResult, error)
func (*Resolver) SearchLinearIssues ¶
func (r *Resolver) SearchLinearIssues(accessToken string, searchTerm string) ([]*modelInputs.IssuesSearchResult, error)
func (*Resolver) SendAdminInviteImpl ¶
func (*Resolver) SendEmailAlert ¶
func (*Resolver) SendSlackAlertToUser ¶
func (r *Resolver) SendSlackAlertToUser(ctx context.Context, workspace *model.Workspace, admin *model.Admin, taggedSlackUsers []*modelInputs.SanitizedSlackChannelInput, viewLink, commentText, action string, subjectScope string, base64Image *string, sessionCommentID *int, errorCommentID *int, additionalContext *string) error
func (*Resolver) SendSlackThreadReply ¶
func (*Resolver) SendWorkspaceRequestEmail ¶
func (*Resolver) Service ¶
func (r *Resolver) Service() generated.ServiceResolver
Service returns generated.ServiceResolver implementation.
func (*Resolver) Session ¶
func (r *Resolver) Session() generated.SessionResolver
Session returns generated.SessionResolver implementation.
func (*Resolver) SessionAlert ¶
func (r *Resolver) SessionAlert() generated.SessionAlertResolver
SessionAlert returns generated.SessionAlertResolver implementation.
func (*Resolver) SessionComment ¶
func (r *Resolver) SessionComment() generated.SessionCommentResolver
SessionComment returns generated.SessionCommentResolver implementation.
func (*Resolver) SetDefaultRetention ¶
func (*Resolver) SetErrorFrequenciesClickhouse ¶
func (*Resolver) SetErrorGroupOccurrences ¶
func (*Resolver) SlackEventsWebhook ¶
func (*Resolver) StripeWebhook ¶
func (*Resolver) Subscription ¶
func (r *Resolver) Subscription() generated.SubscriptionResolver
Subscription returns generated.SubscriptionResolver implementation.
func (*Resolver) TimelineIndicatorEvent ¶
func (r *Resolver) TimelineIndicatorEvent() generated.TimelineIndicatorEventResolver
TimelineIndicatorEvent returns generated.TimelineIndicatorEventResolver implementation.
func (*Resolver) UnmarshalStackTrace ¶
func (r *Resolver) UnmarshalStackTrace(stackTraceString string) ([]*modelInputs.ErrorTrace, error)
func (*Resolver) UpsertDiscordChannel ¶
func (*Resolver) Visualization ¶
func (r *Resolver) Visualization() generated.VisualizationResolver
Visualization returns generated.VisualizationResolver implementation.
type SavedSegmentParams ¶
type SavedSegmentParams struct {
Query string
}
func SavedSegmentQueryToParams ¶
func SavedSegmentQueryToParams(query string) *SavedSegmentParams
type SearchIssuesResponse ¶
type SearchIssuesResponse struct { Data struct { SearchIssues struct { Nodes []LinearIssue `json:"nodes"` } `json:"searchIssues"` } `json:"data"` }
type SimpleAuthClient ¶
type SimpleAuthClient struct{}
func (*SimpleAuthClient) GetUser ¶
func (c *SimpleAuthClient) GetUser(_ context.Context, uid string) (*auth.UserRecord, error)
func (*SimpleAuthClient) SetupListeners ¶
func (c *SimpleAuthClient) SetupListeners(_ chi.Router)
type Tracer ¶
type Tracer struct {
// contains filtered or unexported fields
}