Documentation ¶
Index ¶
- Variables
- func Connect(URI, databaseName, username, password string) (*mongo.Client, *mongo.Database, error)
- func SelectedMediaTypes(mediaTypes []string) map[string]bool
- type HistoriesDisplay
- type History
- type HistoryDisplay
- type User
- func (user *User) OpenInstagram(password string) (fbsr, sessionID, userID string, err error)
- func (user *User) OpenTikTok(password string) (string, error)
- func (user *User) SelectedCategories(categories []string) map[string]bool
- func (user User) WebAuthnCredentials() []webauthn.Credential
- func (user User) WebAuthnDisplayName() string
- func (user User) WebAuthnID() []byte
- func (user User) WebAuthnIcon() string
- func (user User) WebAuthnName() string
- type UserCategoryDisplay
Constants ¶
This section is empty.
Variables ¶
View Source
var (
UpdateOption = options.FindOneAndUpdate().SetReturnDocument(options.After)
)
Functions ¶
func SelectedMediaTypes ¶
Types ¶
type HistoriesDisplay ¶
type History ¶
type History struct { ID string `bson:"_id" json:"-"` U_ID string `bson:"U_ID" json:"-"` URLs []string `bson:"urls" json:"urls"` Type string `bson:"type" json:"type"` Owner string `bson:"owner" json:"owner"` Post string `bson:"post" json:"post"` Date time.Time `bson:"date" json:"date"` Incognito bool `bson:"incognito" json:"incognito"` Categories []string `bson:"categories" json:"categories"` }
type HistoryDisplay ¶
type HistoryDisplay struct { History SelectedCategories map[string]bool Errors []error Version string }
func (HistoryDisplay) HistoryQuery ¶
func (historyDisplay HistoryDisplay) HistoryQuery() template.URL
type User ¶
type User struct { ID primitive.ObjectID `bson:"_id" json:"-"` Username string `bson:"username" json:"-"` Hash string `bson:"hash" json:"-"` Credentials []webauthn.Credential `bson:"credentials" json:"-"` Session webauthn.SessionData `bson:"session" json:"-"` Instagram struct { FBSR string `bson:"fbsr" json:"-"` SessionID string `bson:"session_id" json:"-"` UserID string `bson:"user_id" json:"-"` } `bson:"instagram" json:"-"` TikTok struct { SessionID string `bson:"session_id" json:"-"` SessionIDGuard string `bson:"session_id_guard" json:"-"` ChainToken string `bson:"chain_token" json:"-"` } `bson:"tiktok" json:"-"` Joined time.Time `bson:"joined" json:"-"` Network string `bson:"network" json:"-"` Categories []string `bson:"categories" json:"-"` }
func (*User) OpenInstagram ¶
func (*User) SelectedCategories ¶
func (User) WebAuthnCredentials ¶
func (user User) WebAuthnCredentials() []webauthn.Credential
func (User) WebAuthnDisplayName ¶
func (User) WebAuthnID ¶
func (User) WebAuthnIcon ¶
func (User) WebAuthnName ¶
Click to show internal directories.
Click to hide internal directories.