Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MongoClient ¶
func NewMongoClient ¶
func NewMongoClient(ctx context.Context, options *Options) (*MongoClient, error)
func (*MongoClient) Update ¶
func (mc *MongoClient) Update(obj interface{}, key string, value interface{}) error
type User ¶
type User struct { ID primitive.ObjectID `bson:"_id"` UserID string `bson:"user_id"` Email string `bson:"email" validate:"email,required"` Password string `bson:"password" validate:"required,min=6"` Token string `bson:"token"` RefreshToken string `bson:"refresh_token"` CreatedAt time.Time `bson:"created_at"` UpdatedAt time.Time `bson:"updated_at"` Files []File `bson:"files"` }
Click to show internal directories.
Click to hide internal directories.