graph

package
v0.0.0-...-a245e04 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 106 Imported by: 0

Documentation

Index

Constants

View Source
const ErrorGroupLookbackDays = 7
View Source
const MaxDownloadSize = 32 * 1024 * 1024 // 32MB
View Source
const SessionActiveMetricName = "sessionActiveLength"
View Source
const SessionProcessedMetricName = "sessionProcessed"

Variables

View Source
var (
	WhitelistedUID  = env.Config.AuthWhitelistedAccount
	JwtAccessSecret = env.Config.AuthJWTAccessToken
	FrontendURI     = env.Config.FrontendUri
)
View Source
var AuthenticationError = errors.New("401 - AuthenticationError")
View Source
var AuthorizationError = errors.New("403 - AuthorizationError")
View Source
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,
}
View Source
var EnterpriseAuthModes = []AuthMode{Firebase, OAuth}
View Source
var HighlightAdminEmailDomains = []string{"@highlight.run", "@highlight.io"}
View Source
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

func GenerateRandomBytes(n int) ([]byte, error)

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

func GenerateRandomString(n int) (string, error)

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 GetPasswordAuthUser(email string) *auth.UserInfo

func GetRetentionDate

func GetRetentionDate(retentionPeriodPtr *modelInputs.RetentionPeriod) time.Time

func IsOptOutTokenValid

func IsOptOutTokenValid(adminID int, token string) bool

func MergeHistogramBucketCounts

func MergeHistogramBucketCounts(bucketCounts []int64, multiple int) []int64

func MergeHistogramBucketTimes

func MergeHistogramBucketTimes(bucketTimes []time.Time, multiple int) []time.Time

func PrivateMiddleware

func PrivateMiddleware(next http.Handler) http.Handler

func SetupAuthClient

func SetupAuthClient(ctx context.Context, store *store.Store, authMode AuthMode, oauthServer *oauth.Server, wsTokenHandler APITokenHandler)

func WebsocketInitializationFunction

func WebsocketInitializationFunction() transport.WebsocketInitFunc

Types

type APITokenHandler

type APITokenHandler func(ctx context.Context, apiKey string) (*int, error)

type AuthMode

type AuthMode = string
const (
	Simple   AuthMode = "Simple"
	Firebase AuthMode = "Firebase"
	Password AuthMode = "Password"
	OAuth    AuthMode = "OAuth"
)

func GetEnvAuthMode

func GetEnvAuthMode() AuthMode

type Client

type Client interface {
	GetUser(ctx context.Context, uid string) (*auth.UserRecord, error)
	SetupListeners(r chi.Router)
	// contains filtered or unexported methods
}
var (
	AuthClient  Client
	OAuthServer *oauth.Server
)

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 LinearAccessTokenResponse

type LinearAccessTokenResponse struct {
	AccessToken string   `json:"access_token"`
	TokenType   string   `json:"token_type"`
	ExpiresIn   int64    `json:"expires_in"`
	Scope       []string `json:"scope"`
}

type LinearCreateAttachmentResponse

type LinearCreateAttachmentResponse struct {
	Data struct {
		AttachmentCreate struct {
			Attachment struct {
				ID string `json:"id"`
			} `json:"attachment"`
			Success bool `json:"success"`
		} `json:"attachmentCreate"`
	} `json:"data"`
}

type LinearCreateIssueResponse

type LinearCreateIssueResponse struct {
	Data struct {
		IssueCreate struct {
			Issue struct {
				ID         string `json:"id"`
				Identifier string `json:"identifier"`
			} `json:"issue"`
		} `json:"issueCreate"`
	} `json:"data"`
}

type LinearIssue

type LinearIssue struct {
	Id         string `json:"id"`
	Url        string `json:"url"`
	Identifier string `json:"identifier"`
	Title      string `json:"title"`
}

type LinearTeam

type LinearTeam struct {
	ID   string `json:"id"`
	Name string `json:"name"`
	Key  string `json:"key"`
}

type LinearTeamsResponse

type LinearTeamsResponse struct {
	Data struct {
		Teams struct {
			Nodes []LinearTeam `json:"nodes"`
		} `json:"teams"`
	} `json:"data"`
}

type LoginCredentials

type LoginCredentials struct {
	Email    string `json:"email" binding:"required"`
	Password string `json:"password" binding:"required"`
}

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 PromoCode

type PromoCode struct {
	TrialDays  int
	ValidUntil time.Time
}

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 (r *Resolver) AWSMPCallback(ctx context.Context) func(http.ResponseWriter, *http.Request)

func (*Resolver) AddClickUpToWorkspace

func (r *Resolver) AddClickUpToWorkspace(ctx context.Context, workspace *model.Workspace, code string) error

func (*Resolver) AddCloudflareToWorkspace

func (r *Resolver) AddCloudflareToWorkspace(ctx context.Context, project *model.Project, token string) error

func (*Resolver) AddDiscordToWorkspace

func (r *Resolver) AddDiscordToWorkspace(ctx context.Context, workspace *model.Workspace, code string) error

func (*Resolver) AddGitHubToWorkspace

func (r *Resolver) AddGitHubToWorkspace(ctx context.Context, workspace *model.Workspace, code string) error

func (*Resolver) AddGitlabToWorkspace

func (r *Resolver) AddGitlabToWorkspace(ctx context.Context, workspace *model.Workspace, code string) error

func (*Resolver) AddHeightToWorkspace

func (r *Resolver) AddHeightToWorkspace(ctx context.Context, workspace *model.Workspace, code string) error

func (*Resolver) AddHerokuToProject

func (r *Resolver) AddHerokuToProject(ctx context.Context, project *model.Project, token string) error

func (*Resolver) AddJiraToWorkspace

func (r *Resolver) AddJiraToWorkspace(ctx context.Context, workspace *model.Workspace, code string) error

func (*Resolver) AddLinearToWorkspace

func (r *Resolver) AddLinearToWorkspace(workspace *model.Workspace, code string) error

func (*Resolver) AddMicrosoftTeamsToWorkspace

func (r *Resolver) AddMicrosoftTeamsToWorkspace(ctx context.Context, workspace *model.Workspace, code string) error

func (*Resolver) AddSlackToWorkspace

func (r *Resolver) AddSlackToWorkspace(ctx context.Context, workspace *model.Workspace, code string) error

func (*Resolver) AddVercelToWorkspace

func (r *Resolver) AddVercelToWorkspace(workspace *model.Workspace, code string) error

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 (r *Resolver) CreateClickUpTaskAndAttachment(
	ctx context.Context,
	workspace *model.Workspace,
	attachment *model.ExternalAttachment,
	issueTitle string,
	issueDescription string,
	teamId *string,
) error

func (*Resolver) CreateDefaultDashboard

func (r *Resolver) CreateDefaultDashboard(ctx context.Context, projectID int) (*model.VisualizationsResponse, error)

func (*Resolver) CreateErrorTag

func (r *Resolver) CreateErrorTag(ctx context.Context, title string, description string) (*model.ErrorTag, error)

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 (r *Resolver) CreateGitlabTaskAndAttachment(
	ctx context.Context,
	workspace *model.Workspace,
	attachment *model.ExternalAttachment,
	issueTitle string,
	issueDescription string,
	projectId string,
) error

func (*Resolver) CreateHeightTaskAndAttachment

func (r *Resolver) CreateHeightTaskAndAttachment(
	ctx context.Context,
	workspace *model.Workspace,
	attachment *model.ExternalAttachment,
	issueTitle string,
	issueDescription string,
	teamId *string,
) error
func (r *Resolver) CreateInviteLink(workspaceID int, email *string, role string, shouldExpire bool, projectIds []int) *model.WorkspaceInviteLink

func (*Resolver) CreateIssueAttachment

func (r *Resolver) CreateIssueAttachment(
	ctx context.Context,
	attachment *model.ExternalAttachment,
	issueTitle string,
	issueURL string,
) error

func (*Resolver) CreateJiraTaskAndAttachment

func (r *Resolver) CreateJiraTaskAndAttachment(
	ctx context.Context,
	workspace *model.Workspace,
	attachment *model.ExternalAttachment,
	issueTitle string,
	issueDescription string,
	projectId string,
	issueTypeId string,
) error

func (*Resolver) CreateLinearAttachment

func (r *Resolver) CreateLinearAttachment(accessToken string, issueID string, title string, subtitle string, url string) (*LinearCreateAttachmentResponse, error)

func (*Resolver) CreateLinearAttachmentForExistingIssue

func (r *Resolver) CreateLinearAttachmentForExistingIssue(
	ctx context.Context,
	workspace *model.Workspace,
	attachment *model.ExternalAttachment,
	commentText string,
	authorName string,
	viewLink string,
	issueId string,
	issueIdentifier string,
) error

func (*Resolver) CreateLinearIssue

func (r *Resolver) CreateLinearIssue(accessToken string, teamID string, title string, description string) (*LinearCreateIssueResponse, error)

func (*Resolver) CreateLinearIssueAndAttachment

func (r *Resolver) CreateLinearIssueAndAttachment(
	ctx context.Context,
	workspace *model.Workspace,
	attachment *model.ExternalAttachment,
	issueTitle string,
	issueDescription string,
	commentText string,
	authorName string,
	viewLink string,
	teamId *string,
) error

func (*Resolver) CreateSlackBlocks

func (r *Resolver) CreateSlackBlocks(admin *model.Admin, viewLink, commentText, action string, subjectScope string, additionalContext *string) ([]slack.Block, *slack.Attachment)

func (*Resolver) CreateSlackChannel

func (r *Resolver) CreateSlackChannel(workspaceId int, name string) (*model.SlackChannel, error)

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

func (r *Resolver) GenerateRandomStringURLSafe(n int) (string, error)

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 (r *Resolver) GetAWSMarketPlaceWorkspace(ctx context.Context, workspaceID int) (*model.Workspace, error)

func (*Resolver) GetErrorTags

func (r *Resolver) GetErrorTags() ([]*model.ErrorTag, error)

func (*Resolver) GetGitHubIssueLabels

func (r *Resolver) GetGitHubIssueLabels(
	ctx context.Context,
	workspace *model.Workspace,
	repository string,
) ([]string, error)

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 (r *Resolver) GetLinearAccessToken(code string, redirectURL string, clientID string, clientSecret string) (LinearAccessTokenResponse, error)

func (*Resolver) GetLinearTeams

func (r *Resolver) GetLinearTeams(accessToken string) (*LinearTeamsResponse, error)

func (*Resolver) GetProjectRetentionDate

func (r *Resolver) GetProjectRetentionDate(projectId int) (time.Time, error)

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 (r *Resolver) GetSlackChannelsFromSlack(ctx context.Context, workspaceId int) (*[]model.SlackChannel, int, error)

func (*Resolver) GetWorkspace

func (r *Resolver) GetWorkspace(workspaceID int) (*model.Workspace, error)

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 (r *Resolver) MakeLinearGraphQLRequest(accessToken string, body string) ([]byte, error)

func (*Resolver) MarshalAlertEmails

func (r *Resolver) MarshalAlertEmails(emails []*string) (*string, error)

func (*Resolver) MarshalEnvironments

func (r *Resolver) MarshalEnvironments(environments []*string) (*string, error)

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 (r *Resolver) RemoveClickUpFromWorkspace(ctx context.Context, workspace *model.Workspace) error

func (*Resolver) RemoveDiscordFromWorkspace

func (r *Resolver) RemoveDiscordFromWorkspace(ctx context.Context, workspace *model.Workspace) error

func (*Resolver) RemoveGitHubFromWorkspace

func (r *Resolver) RemoveGitHubFromWorkspace(ctx context.Context, workspace *model.Workspace) error

func (*Resolver) RemoveGitlabFromWorkspace

func (r *Resolver) RemoveGitlabFromWorkspace(ctx context.Context, workspace *model.Workspace) error

func (*Resolver) RemoveIntegrationFromWorkspaceAndProjects

func (r *Resolver) RemoveIntegrationFromWorkspaceAndProjects(ctx context.Context, workspace *model.Workspace, integrationType modelInputs.IntegrationType) error

func (*Resolver) RemoveJiraFromWorkspace

func (r *Resolver) RemoveJiraFromWorkspace(ctx context.Context, workspace *model.Workspace) error

func (*Resolver) RemoveLinearFromWorkspace

func (r *Resolver) RemoveLinearFromWorkspace(ctx context.Context, workspace *model.Workspace) error

func (*Resolver) RemoveMicrosoftTeamsFromWorkspace

func (r *Resolver) RemoveMicrosoftTeamsFromWorkspace(ctx context.Context, workspace *model.Workspace, projectID int) error

func (*Resolver) RemoveSlackFromWorkspace

func (r *Resolver) RemoveSlackFromWorkspace(ctx context.Context, workspace *model.Workspace, projectID int) error

func (*Resolver) RemoveVercelFromWorkspace

func (r *Resolver) RemoveVercelFromWorkspace(ctx context.Context, workspace *model.Workspace) error

func (*Resolver) RemoveZapierFromWorkspace

func (r *Resolver) RemoveZapierFromWorkspace(ctx context.Context, project *model.Project) error

func (*Resolver) ResolveAWSMarketplaceToken

func (r *Resolver) ResolveAWSMarketplaceToken(ctx context.Context, token string) (*marketplacemetering.ResolveCustomerOutput, error)

func (*Resolver) RevokeLinearAccessToken

func (r *Resolver) RevokeLinearAccessToken(accessToken string) error

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 (r *Resolver) SendAdminInviteImpl(adminName string, projectOrWorkspaceName string, inviteLink string, email string) (*string, error)

func (*Resolver) SendEmailAlert

func (r *Resolver) SendEmailAlert(
	tos []*mail.Email,
	ccs []*mail.Email,
	authorName string,
	viewLink string,
	muteLink string,
	subjectScope string,
	textForEmail string,
	templateID string,
	sessionImage *string,
	asmGroupId *int,
) error

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 (r *Resolver) SendSlackThreadReply(ctx context.Context, workspace *model.Workspace, admin *model.Admin, viewLink, commentText, action string, subjectScope string, threadIDs []int) error

func (*Resolver) SendWorkspaceRequestEmail

func (r *Resolver) SendWorkspaceRequestEmail(fromName string, fromEmail string, workspaceName string, toName string, toEmail string, inviteLink string) (*string, error)

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 (r *Resolver) SetDefaultRetention(workspace *model.Workspace)

func (*Resolver) SetErrorFrequenciesClickhouse

func (r *Resolver) SetErrorFrequenciesClickhouse(ctx context.Context, projectID int, errorGroups []*model.ErrorGroup, lookbackPeriod int) error

func (*Resolver) SetErrorGroupOccurrences

func (r *Resolver) SetErrorGroupOccurrences(ctx context.Context, projectID int, errorGroups []*model.ErrorGroup) error

func (*Resolver) SlackEventsWebhook

func (r *Resolver) SlackEventsWebhook(ctx context.Context, signingSecret string) func(w http.ResponseWriter, req *http.Request)

func (*Resolver) StripeWebhook

func (r *Resolver) StripeWebhook(ctx context.Context, endpointSecret string) func(http.ResponseWriter, *http.Request)

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) UpdateErrorTags

func (r *Resolver) UpdateErrorTags(ctx context.Context) error

func (*Resolver) UpsertDiscordChannel

func (r *Resolver) UpsertDiscordChannel(workspaceId int, name string) (*model.DiscordChannel, error)

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
}

func (*Tracer) ExtensionName

func (t *Tracer) ExtensionName() string

func (*Tracer) InterceptField

func (t *Tracer) InterceptField(ctx context.Context, next graphql.Resolver) (interface{}, error)

func (*Tracer) Validate

func (t *Tracer) Validate(graphql.ExecutableSchema) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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