Documentation
¶
Index ¶
- Variables
- func AutoRegisterMetrics(projectId uuid.UUID, names []string)
- func AutoRegisterMetricsWithUnits(projectId uuid.UUID, entries []repositories.MetricRegistrationEntry)
- func CheckPassword(password, hash string) bool
- func CollectUniqueMetricNames(points []models.MetricPoint) []string
- func GenerateToken(userId int, email string) (string, error)
- func HashPassword(password string) (string, error)
- func InitEmail()
- func InitJWT() error
- func InitOAuth()
- func InitParsedSourceMapCache(max int)
- func InitTurnstile()
- func ResolveStackTrace(ctx context.Context, projectId uuid.UUID, stackTrace string, ...) string
- type JWTClaims
- type ParsedSourceMapCacheStats
Constants ¶
This section is empty.
Variables ¶
View Source
var EmailService *emailService
View Source
var OAuthService *oauthService
View Source
var TurnstileService *turnstileService
Functions ¶
func AutoRegisterMetrics ¶
func AutoRegisterMetricsWithUnits ¶
func AutoRegisterMetricsWithUnits(projectId uuid.UUID, entries []repositories.MetricRegistrationEntry)
func CheckPassword ¶
func CollectUniqueMetricNames ¶
func CollectUniqueMetricNames(points []models.MetricPoint) []string
func HashPassword ¶
func InitParsedSourceMapCache ¶ added in v1.7.29
func InitParsedSourceMapCache(max int)
func InitTurnstile ¶
func InitTurnstile()
Types ¶
type JWTClaims ¶
type JWTClaims struct {
UserId int `json:"userId"`
Email string `json:"email"`
jwt.RegisteredClaims
}
func ValidateToken ¶
type ParsedSourceMapCacheStats ¶ added in v1.7.29
type ParsedSourceMapCacheStats struct {
Entries int
Max int
Hits uint64
Misses uint64
LastParseMs float64
}
func ParsedSourceMapStats ¶
func ParsedSourceMapStats() ParsedSourceMapCacheStats
Click to show internal directories.
Click to hide internal directories.