services

package
v1.8.13 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2026 License: MIT Imports: 42 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EmailService *emailService
View Source
var OAuthService *oauthService
View Source
var TurnstileService *turnstileService

Functions

func AndroidMappingKey added in v1.8.8

func AndroidMappingKey(projectId uuid.UUID, proguardUuid string) string

func AutoRegisterMetrics

func AutoRegisterMetrics(projectId uuid.UUID, names []string)

func AutoRegisterMetricsWithUnits

func AutoRegisterMetricsWithUnits(projectId uuid.UUID, entries []repositories.MetricRegistrationEntry)

func BuildPprof added in v1.8.12

func BuildPprof(name, unit string, stacks []models.ProfileStackValue) ([]byte, error)

func CheckPassword

func CheckPassword(password, hash string) bool

func CollectUniqueMetricNames

func CollectUniqueMetricNames(points []models.MetricPoint) []string

func DartSymbolsKey added in v1.8.1

func DartSymbolsKey(projectId uuid.UUID, debugId, arch string) string

func DebugIdBundleName added in v1.8.0

func DebugIdBundleName(debugId string) string

func DebugIdMapName added in v1.8.0

func DebugIdMapName(debugId string) string

func EnableSymbolicatorDiskCache added in v1.8.1

func EnableSymbolicatorDiskCache(dir string, maxBytes int64) error

func ExtractDebugId added in v1.8.0

func ExtractDebugId(fileName string, data []byte) string

func FilterHealthchecks added in v1.7.32

func FilterHealthchecks(project *models.Project, endpoints []models.Endpoint, spans []models.Span, exceptions []models.ExceptionStackTrace) ([]models.Endpoint, []models.Span, int)

func GenerateTWArtifacts added in v1.8.0

func GenerateTWArtifacts(ctx context.Context, projectId uuid.UUID, fileNames []string)

func GenerateToken

func GenerateToken(userId int, email string) (string, error)

func HashPassword

func HashPassword(password string) (string, error)

func IOSSymbolsKey added in v1.8.3

func IOSSymbolsKey(projectId uuid.UUID, debugId string) string

func InitEmail

func InitEmail()

func InitJWT

func InitJWT() error

func InitOAuth

func InitOAuth()

func InitSourceMapCache added in v1.7.33

func InitSourceMapCache(maxEntries int, maxBytes int64)

func InitTurnstile

func InitTurnstile()

func InvalidateAndroidMapping added in v1.8.8

func InvalidateAndroidMapping(mappingKey string)

func InvalidateDartSymbols added in v1.8.1

func InvalidateDartSymbols(keys ...string)

func InvalidateIOSSymbols added in v1.8.3

func InvalidateIOSSymbols(keys ...string)

func InvalidateSourceMap added in v1.8.0

func InvalidateSourceMap(projectId uuid.UUID, fileName string)

func NormalizeDartArch added in v1.8.1

func NormalizeDartArch(arch string) string

func NormalizeDartDebugId added in v1.8.1

func NormalizeDartDebugId(debugId string) string

func NormalizeDebugId added in v1.8.0

func NormalizeDebugId(raw string) string

func NormalizeProguardUUID added in v1.8.8

func NormalizeProguardUUID(s string) string

func ResolveAndroidStackTrace added in v1.8.8

func ResolveAndroidStackTrace(ctx context.Context, projectId uuid.UUID, rawTrace, proguardUuid string) string

func ResolveDartStackTrace added in v1.8.1

func ResolveDartStackTrace(ctx context.Context, projectId uuid.UUID, rawTrace string) string

func ResolveIOSStackTrace added in v1.8.3

func ResolveIOSStackTrace(ctx context.Context, projectId uuid.UUID, rawTrace string) string

func ResolveStackTrace

func ResolveStackTrace(ctx context.Context, projectId uuid.UUID, stackTrace string, debugIds map[string]string) string

func ShouldDropHealthcheck added in v1.7.32

func ShouldDropHealthcheck(project *models.Project, endpoint string, statusCode int16) bool

func SourceMapStorageKey added in v1.8.0

func SourceMapStorageKey(projectId uuid.UUID, fileName string) string

Types

type FlameNode added in v1.8.9

type FlameNode struct {
	Name     string       `json:"name"`
	Value    int64        `json:"value"`
	Self     int64        `json:"self"`
	Children []*FlameNode `json:"children,omitempty"`
}

func FoldFlameGraph added in v1.8.9

func FoldFlameGraph(stacks []models.ProfileStackValue) *FlameNode

type FunctionStat added in v1.8.12

type FunctionStat struct {
	Name    string  `json:"name"`
	Flat    int64   `json:"flat"`
	Cum     int64   `json:"cum"`
	FlatPct float64 `json:"flatPct"`
	CumPct  float64 `json:"cumPct"`
}

func TopFunctions added in v1.8.12

func TopFunctions(stacks []models.ProfileStackValue, limit int) []FunctionStat

type JWTClaims

type JWTClaims struct {
	UserId int    `json:"userId"`
	Email  string `json:"email"`
	jwt.RegisteredClaims
}

func ValidateToken

func ValidateToken(tokenString string) (*JWTClaims, error)

type SourceMapCacheStats added in v1.7.33

type SourceMapCacheStats struct {
	Entries         int
	Bytes           int64
	MaxEntries      int
	MaxBytes        int64
	Hits            uint64
	Misses          uint64
	Evictions       uint64
	Failures        uint64
	NotFound        uint64
	NegativeHits    uint64
	NegativeEntries int
	LastParseMs     float64

	DiskEnabled   bool
	DiskEntries   int
	DiskBytes     int64
	DiskMaxBytes  int64
	DiskHits      uint64
	StoreHits     uint64
	Builds        uint64
	DiskEvictions uint64
}

func SourceMapStats added in v1.7.33

func SourceMapStats() SourceMapCacheStats

type SymbolicationCacheEntry added in v1.8.8

type SymbolicationCacheEntry = any

Jump to

Keyboard shortcuts

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