Documentation ¶
Index ¶
- func Import(ctx context.Context, db *mongo.Database, rTx, tx pgx.Tx, limit int) error
- func ResolveUsers(ctx context.Context, rTx pgx.Tx, ids map[primitive.ObjectID]bool, ...) (map[primitive.ObjectID]pgtype.UUID, error)
- type AuditLogEntry
- type AuditLogField
- type BetaProgramField
- type EditorConfig
- type EditorConfigField
- type EmailDetails
- type EmailField
- type EmailsField
- type EpochField
- type Features
- type FeaturesField
- type FirstNameField
- type ForPQ
- type HashedPasswordField
- type IdField
- type LastLoggedInField
- type LastLoginIPField
- type LastNameField
- type LoginCountField
- type MustReconfirmField
- type SignUpDateField
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuditLogEntry ¶
type AuditLogField ¶
type AuditLogField struct {
AuditLog []AuditLogEntry `bson:"auditLog"`
}
type BetaProgramField ¶
type BetaProgramField struct {
BetaProgram bool `bson:"betaProgram"`
}
type EditorConfig ¶
type EditorConfig struct { FontFamily string `bson:"fontFamily"` FontSize int64 `bson:"fontSize"` LineHeight string `bson:"lineHeight"` Mode string `bson:"mode"` OverallTheme string `bson:"overallTheme"` PDFViewer string `bson:"pdfViewer"` SpellCheckLanguage spellingTypes.SpellCheckLanguage `bson:"spellCheckLanguage"` Theme string `bson:"theme"` AutoComplete bool `bson:"autoComplete"` AutoPairDelimiters bool `bson:"autoPairDelimiters"` SyntaxValidation bool `bson:"syntaxValidation"` }
func (EditorConfig) Migrate ¶
func (e EditorConfig) Migrate() user.EditorConfig
type EditorConfigField ¶
type EditorConfigField struct {
EditorConfig EditorConfig `bson:"ace"`
}
type EmailDetails ¶
type EmailDetails struct { Id primitive.ObjectID `bson:"_id"` CreatedAt time.Time `bson:"createdAt"` ConfirmedAt *time.Time `bson:"confirmedAt"` ReconfirmedAt *time.Time `bson:"reconfirmedAt"` Email sharedTypes.Email `bson:"email"` ReversedHostname sharedTypes.ReversedHostname `bson:"reversedHostname"` }
type EmailField ¶
type EmailField struct {
Email sharedTypes.Email `bson:"email"`
}
type EmailsField ¶
type EmailsField struct {
Emails []EmailDetails `bson:"emails"`
}
type EpochField ¶
type EpochField struct {
Epoch int64 `bson:"epoch"`
}
type Features ¶
type Features struct { Collaborators int `bson:"collaborators"` CompileTimeout sharedTypes.ComputeTimeout `bson:"compileTimeout"` CompileGroup sharedTypes.CompileGroup `bson:"compileGroup"` Versioning bool `bson:"versioning"` }
type FeaturesField ¶
type FeaturesField struct {
Features Features `bson:"features"`
}
type FirstNameField ¶
type FirstNameField struct {
FirstName string `bson:"first_name"`
}
type ForPQ ¶
type ForPQ struct { AuditLogField `bson:"inline"` IdField `bson:"inline"` BetaProgramField `bson:"inline"` MustReconfirmField `bson:"inline"` EditorConfigField `bson:"inline"` EmailField `bson:"inline"` EmailsField `bson:"inline"` EpochField `bson:"inline"` FeaturesField `bson:"inline"` FirstNameField `bson:"inline"` HashedPasswordField `bson:"inline"` LastLoggedInField `bson:"inline"` LastLoginIPField `bson:"inline"` LastNameField `bson:"inline"` LoginCountField `bson:"inline"` SignUpDateField `bson:"inline"` }
type HashedPasswordField ¶
type HashedPasswordField struct {
HashedPassword string `bson:"hashedPassword"`
}
type LastLoggedInField ¶
type LastLoginIPField ¶
type LastLoginIPField struct {
LastLoginIP string `bson:"lastLoginIp"`
}
type LastNameField ¶
type LastNameField struct {
LastName string `bson:"last_name"`
}
type LoginCountField ¶
type LoginCountField struct {
LoginCount int64 `bson:"loginCount"`
}
type MustReconfirmField ¶
type MustReconfirmField struct {
MustReconfirm bool `bson:"must_reconfirm"`
}
type SignUpDateField ¶
Click to show internal directories.
Click to hide internal directories.