models

package
v0.0.0-...-9d5ab40 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Activity

type Activity struct {
	Id        string    `json:"id"`
	Type      string    `json:"type"`
	Username  string    `json:"username"`
	UsernameF string    `json:"usernamef"`
	PostId    string    `json:"postid"`
	Post      Post      `json:"post"`
	Comment   Comment   `json:"comment"`
	Body      string    `json:"body"`
	Image     string    `json:"image"`
	Date      time.Time `json:"date"`
}

type Comment

type Comment struct {
	CommentId          string    `json:"commentid"`
	Username           string    `json:"username"`
	Verified           bool      `json:"verified"`
	UserDisplayPicture string    `json:"userdisplay"`
	CommentData        string    `json:"commentdata"`
	DateAdded          time.Time `json:"dateAdded"`
}

type Credentials

type Credentials struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

Credentials struct

type GoogleToken

type GoogleToken struct {
	TokenId string `json:"tokenId"`
}

Google Token Struct

type Post

type Post struct {
	PostId    string    `json:"postid"`
	UserId    string    `json:"userid"`
	Verified  bool      `json:"verified"`
	Username  string    `json:"username"`
	Caption   string    `json:"caption"`
	Comments  []Comment `json:"comments"`
	NumLikes  int       `json:"numlikes"`
	Likers    []string  `json:"likers"`
	Url       string    `json:"url"`
	Thumbnail string    `json:"thumbnail"`
	DateAdded time.Time `json:"dateAdded"`
}

type ProtectedUser

type ProtectedUser struct {
	Username       string        `json:"username"`
	DisplayName    string        `json:"displayName"`
	DisplayPicture string        `json:"displayPicture"`
	Verified       bool          `json:"verified"`
	Relations      Relationships `json:"relations"`
	Posts          []Post        `json:"posts"`
	NumPosts       int           `json:"numPosts"`
	Activity       []Activity    `json:"activity"`
}

type Relationships

type Relationships struct {
	Followers    []string `json:"followers"`
	Following    []string `json:"following"`
	NumFollowers int      `json:"numfollowers"`
	NumFollowing int      `json:"numfollowing"`
	LikedPosts   []string `json:"likedposts"`
}

Relationships struct

type User

type User struct {
	UserId         string        `json:"userId"`
	UserToken      GoogleToken   `json:"userToken"`
	DisplayName    string        `json:"displayName"`
	DisplayPicture string        `json:"displayPicture"`
	Username       string        `json:"username"`
	Email          string        `json:"email"`
	Verified       bool          `json:"verified"`
	Relations      Relationships `json:"relations"`
	Posts          []Post        `json:"posts"`
	Activity       []Activity    `json:"activity"`
	DateJoined     time.Time     `json:"dateJoined"`
}

User struct

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL