Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Claim ¶
type Claim struct { ID primitive.ObjectID `bson:"_id" json:"_id,omitempty"` Email string `json:"email"` jwt.StandardClaims }
Claim struct used to struct de JWT
type FollowPlusUser ¶
type FollowPlusUser struct {
Status bool `json:"status"`
}
FollowPlusUser struct
type Follower ¶
type Follower struct { UserID string `bson:"user_id" json:"user_id,omitempty"` UserFollowed string `bson:"user_followed" json:"user_followed,omitempty"` }
Follower is the encharge of defining the follower
type InsertPub ¶
type InsertPub struct { UserID string `bson:"userid" json:"userid,omitempty"` Content string `bson:"content" json:"content,omitempty"` DateTime time.Time `bson:"datetime" json:"datetime,omitempty"` }
InsertPub struct the pub into the db
type LoginResponse ¶
type LoginResponse struct {
Token string `json:"token,omitempty"`
}
LoginResponse to connect the Jwt to the login
type Pub ¶
type Pub struct {
Content string `bson:"content" json:"content,omitempty"`
}
Pub content for the selected Pub
type User ¶
type User struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"id"` Name string `bson:"name" json:"name,omitempty"` LastName string `bson:"lastname" json:"lastname,omitempty"` BirthDate time.Time `bson:"birthdate" json:"birthdate,omitempty"` Email string `bson:"email" json:"email"` Password string `bson:"password" json:"password,omitempty"` Avatar string `bson:"avatar" json:"avatar,omitempty"` Banner string `bson:"banner" json:"banner,omitempty"` Bio string `bson:"bio" json:"bio,omitempty"` Location string `bson:"location" json:"location,omitempty"` WebSite string `bson:"website" json:"website,omitempty"` }
User from MongoDB
type ViewPub ¶
type ViewPub struct { ID primitive.ObjectID `bson:"_id" json:"_id,omitempty"` UserID string `bson:"userid" json:"userid,omitempty"` Content string `bson:"content" json:"content,omitempty"` DateTime time.Time `bson:"datetime" json:"datetime,omitempty"` }
ViewPub is the struct to read the pub requested
Click to show internal directories.
Click to hide internal directories.