Versions in this module Expand all Collapse all v1 v1.3.9 Apr 3, 2021 Changes in this version + func HashPassword(password string) string + type Activity struct + Activity string + ID *primitive.ObjectID + type Connection struct + AccessToken string + CreatedAt time.Time + ID *primitive.ObjectID + Name string + RefreshedToken string + ServiceUserId string + ShowActivity bool + Type proto.Connection_Type + UpdatedAt time.Time + UserId *primitive.ObjectID + func (c *Connection) ToProto() *proto.Connection + type Follow struct + CreatedAt time.Time + EmailNotification bool + ID *primitive.ObjectID + PushNotification bool + TheaterId *primitive.ObjectID + UpdatedAt time.Time + UserId *primitive.ObjectID + type Friend struct + Accepted bool + CreatedAt time.Time + FriendId *primitive.ObjectID + ID *primitive.ObjectID + UpdatedAt time.Time + UserId *primitive.ObjectID + func (f *Friend) ToProto() *proto.Friend + type MediaSource struct + Artist string + Banner string + CreatedAt time.Time + ID *primitive.ObjectID + Length int64 + Subtitles []*Subtitle + Title string + Type proto.MediaSource_Type + UpdatedAt time.Time + Uri string + UserId *primitive.ObjectID + type Message struct + Content string + CreatedAt time.Time + Deleted bool + DeletedAt time.Time + Edited bool + ID *primitive.ObjectID + ReceiverId *primitive.ObjectID + SenderId *primitive.ObjectID + UpdatedAt time.Time + func (m *Message) ToProto(db *mongo.Database) (*proto.Message, error) + type Notification struct + CreatedAt time.Time + Extra *primitive.ObjectID + FromUserId *primitive.ObjectID + ID *primitive.ObjectID + Read bool + ReadAt time.Time + ToUserId *primitive.ObjectID + Type proto.Notification_NOTIFICATION_TYPE + UpdatedAt time.Time + type RefreshedToken struct + CreatedAt time.Time + Csrf string + ExpiresAt time.Time + ID *primitive.ObjectID + Token string + UserId *primitive.ObjectID + Valid bool + type Subtitle struct + CreatedAt time.Time + File string + ID *primitive.ObjectID + Lang string + MediaSourceId *primitive.ObjectID + UpdatedAt time.Time + type Theater struct + CreatedAt time.Time + Description string + ID *primitive.ObjectID + MediaSourceId *primitive.ObjectID + Privacy proto.PRIVACY + UpdatedAt time.Time + UserId *primitive.ObjectID + VideoPlayerAccess proto.VIDEO_PLAYER_ACCESS + type TheaterMember struct + ID *primitive.ObjectID + TheaterId *primitive.ObjectID + UserId *primitive.ObjectID + type User struct + Avatar string + Email string + EmailToken string + EmailVerified bool + Fullname string + Hash string + ID *primitive.ObjectID + IsActive bool + IsStaff bool + JoinedAt time.Time + LastLogin time.Time + Password string + RoleId uint + State proto.PERSONAL_STATE + TwoFactorAuthEnabled bool + TwoFactorAuthToken string + UpdatedAt time.Time + Username string + Verified bool + func (u *User) SetPassword(password string) + func (u *User) ToProto() *proto.User + func (u *User) ValidatePassword(password string) bool