package
Version:
v0.0.0-...-02ebfc9
Opens a new window with list of versions in this module.
Published: Jun 26, 2020
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Auction struct {
ID string `json:"id" bson:"_id,omitempty"`
Host string `json:"host"`
Description string `json:"description"`
Offer float64 `json:"offer"`
Bids []*Bid `json:"bids"`
Timestamp string `json:"timestamp"`
Deadline string `json:"deadline"`
}
type Bid struct {
ID string `json:"id"`
Issuer string `json:"issuer"`
Deadline string `json:"deadline"`
Price float64 `json:"price"`
Timestamp string `json:"timestamp"`
Selected bool `json:"selected"`
}
type Chat struct {
ID string `json:"id"`
Users []string `json:"users"`
Messages []*Message `json:"messages"`
}
type CommentList struct {
}
type FeedAuction struct {
ID string `json:"id"`
Host *FeedUser `json:"host"`
Description string `json:"description"`
Offer float64 `json:"offer"`
Bids []*Bid `json:"bids"`
Timestamp string `json:"timestamp"`
Deadline string `json:"deadline"`
}
type FeedPost struct {
ID string `json:"id"`
Author *FeedUser `json:"author"`
Description *string `json:"description"`
Content string `json:"content"`
Timestamp string `json:"timestamp"`
Likes int `json:"likes"`
Liked bool `json:"liked"`
BidID *string `json:"bidID"`
}
type FeedUser struct {
Nickname string `json:"nickname"`
Name string `json:"name"`
Picture string `json:"picture"`
}
type Login struct {
Token string `json:"token"`
First bool `json:"first"`
}
type Message struct {
ChatID string `json:"chatID"`
Message string `json:"message"`
Timestamp string `json:"timestamp"`
Sender string `json:"sender"`
}
type NewUser struct {
Nickname string `json:"nickname"`
Name string `json:"name"`
Email string `json:"email"`
Password string `json:"password"`
}
type Order struct {
ID string `json:"id"`
PaymentID string `json:"paymentID"`
PaymentURL string `json:"paymentURL"`
PayerID *string `json:"payerID"`
AuctionID string `json:"auctionID"`
BidID string `json:"bidID"`
Status string `json:"status"`
}
type Post struct {
ID string `json:"id" bson:"_id,omitempty"`
Author string `json:"author"`
Description *string `json:"description"`
Content string `json:"content"`
Timestamp string `json:"timestamp"`
LikeCount int `json:"likeCount"`
Likes []string `json:"likes"`
Liked bool `json:"liked" bson:"liked,omitempty"`
BidID *string `json:"bidID"`
}
type PostComment struct {
}
type User struct {
Nickname string `json:"nickname"`
Name string `json:"name"`
Email string `json:"email"`
Bio string `json:"bio"`
Picture string `json:"picture"`
Cover string `json:"cover"`
Followers []string `json:"followers"`
FollowersCount int `json:"followersCount"`
Following []string `json:"following"`
Lat float64 `json:"lat"`
Lng float64 `json:"lng"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.