Versions in this module Expand all Collapse all v0 v0.0.3 Nov 12, 2026 v0.0.2 Nov 11, 2026 Changes in this version + const MaxPersonNameLen + const MaxUsernameLen + const MinUsernameLen + func CleanPersonName(s string) (name string, ok bool) + func ValidUsername(s string) bool type User + FirstName string + LastName string + Username string + func (u User) DisplayName() string + func (u User) FullName() string v0.0.1 Nov 10, 2026 Changes in this version + const DefaultJobPriority + const JobCanceled + const JobExpired + const JobFailed + const JobOriginAPI + const JobOriginAdmin + const JobOriginSchedule + const JobOriginUser + const JobQueued + const JobRunning + const JobSucceeded + const MaxJobPriority + const MethodBodPod + const MethodCaliper + const MethodHydrostatic + const MethodManualEntry + const MethodScale + const MethodTape + const MethodVisualAI + const MinJobPriority + const OutcomeFail + const OutcomeOK + const OutcomeRetry + const ProviderKindApple + const ProviderKindOAuth2 + const ProviderKindOIDC + const ProviderLocal + const ProviderPasskey + const RoleAdmin + const RoleUser + const SourceManual + var Methods = []MethodInfo + func DefaultRanking() []string + func JobActive(state string) bool + func NormalizeEmail(email string) string + func NormalizeRanking(in []string) []string + func ValidMethod(key string) bool + type AccessToken struct + CreatedAt time.Time + ExpiresAt *time.Time + Hash string + ID int64 + LastUsedAt *time.Time + Name string + Prefix string + UserID int64 + type AuditEvent struct + Action string + ActorID *int64 + At time.Time + Detail string + ID int64 + IP string + TargetID *int64 + type AuthProvider struct + AllowSignup bool + AppleKeyID string + AppleTeamID string + AuthURL string + ClientID string + ClientSecret string + CreatedAt time.Time + Issuer string + Kind string + Label string + NameClaim string + Scopes string + Slug string + SubjectClaim string + TokenURL string + UserinfoURL string + type Completion struct + Error string + Outcome string + Result string + RetryAt time.Time + type DexaScan struct + AndroidFatPct *float64 + BMDGCm2 *float64 + BoneMassKg *float64 + CreatedAt time.Time + FatFreeMassKg *float64 + FatMassKg *float64 + FatRatioPct *float64 + GynoidFatPct *float64 + ID int64 + LeanMassKg *float64 + MeasuredAt time.Time + Notes string + TScore *float64 + UserID int64 + VisceralFatMassKg *float64 + WeightKg *float64 + ZScore *float64 + type Identity struct + CreatedAt time.Time + Provider string + Secret string + Subject string + UserID int64 + type Job struct + Attempts int + CancelRequested bool + CreatedAt time.Time + DeadlineAt *time.Time + DedupeKey string + Error string + ExpiresAt *time.Time + FinishedAt *time.Time + ID int64 + Interactive bool + Kind string + LeaseOwner string + LeaseUntil *time.Time + MaxAttempts int + Origin string + Payload string + Progress string + PublicID string + Result string + RunAfter time.Time + StartedAt *time.Time + State string + Timeout time.Duration + UpdatedAt time.Time + UserID int64 + type JobFilter struct + Kinds []string + Limit int + States []string + UserID int64 + type JobKindStats struct + Failed int + Kind string + Queued int + Running int + type JobSchedule struct + ConsecutiveFailures int + Kind string + LastEnqueuedAt *time.Time + PausedReason string + UserID int64 + type LeaseRequest struct + Kinds []string + LeaseFor time.Duration + MaxRunning map[string]int + Owner string + Paused []string + TokenHash string + type MethodInfo struct + Key string + Label string + type NewJob struct + DedupeKey string + ExpiresAt *time.Time + Interactive bool + Kind string + MaxAttempts int + Origin string + Payload string + RunAfter time.Time + Timeout time.Duration + UserID int64 + type Passkey struct + CreatedAt time.Time + Credential string + CredentialID string + LastUsedAt *time.Time + Name string + SignCount uint32 + UserID int64 + type ScaleReading struct + AthleteMode bool + BoneMassKg *float64 + CreatedAt time.Time + ExternalID *string + FatFreeMassKg *float64 + FatMassKg *float64 + FatRatioPct *float64 + HydrationKg *float64 + ID int64 + MeasuredAt time.Time + Method string + MuscleMassKg *float64 + Notes string + Source string + UserID int64 + VisceralFatIndex *float64 + WeightKg *float64 + type Session struct + CreatedAt time.Time + ExpiresAt time.Time + Method string + UserID int64 + type TOTP struct + Confirmed bool + ConfirmedAt time.Time + CreatedAt time.Time + LastStep int64 + Secret string + UserID int64 + type User struct + AthleteDefault bool + CreatedAt time.Time + DataVersion int64 + Email string + HeightCm *float64 + HiddenColumns []string + ID int64 + JobPriority int + MethodRanking []string + Name string + Role string + StrengthLevelAuto bool + StrengthLevelBulk bool + Timezone string + func (u User) IsAdmin() bool + func (u User) Location() *time.Location + type WorkerInstance struct + ID string + Kinds []string + LastSeen time.Time + Version string