Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Board ¶
type Board struct { Id int `json:"id"` Name string `json:"name"` Description string `json:"description"` Privacy string `json:"privacy"` UserId int `json:"user_id"` }
func (Board) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Board) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Board) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Board) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Chat ¶
type Chat struct { ID int `json:"id"` User1ID int `json:"user1_id"` User2ID int `json:"user2_id"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }
func (Chat) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Chat) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Chat) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Chat) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Comment ¶
type Comment struct { ID int `json:"id"` AuthorID int `json:"author_id"` PinID int `json:"pin_id"` Text string `json:"text"` CreatedAt time.Time `json:"created_at"` }
func (Comment) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Comment) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Comment) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Comment) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Like ¶
type Like struct { PinId int `json:"pin_id"` AuthorId int `json:"author_id"` CreatedAt time.Time `json:"created_at"` }
func (Like) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Like) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Like) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Like) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Message ¶
type Message struct { ID int `json:"id"` AuthorID int `json:"author_id"` ChatID int `json:"chat_id"` Text string `json:"text"` CreatedAt time.Time `json:"created_at"` }
func (Message) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Message) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Message) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Message) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type NewCommentNotification ¶
type NewCommentNotification struct { PinID int `json:"pin_id"` AuthorID int `json:"author_id"` Text string `json:"text"` }
func (NewCommentNotification) MarshalEasyJSON ¶
func (v NewCommentNotification) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (NewCommentNotification) MarshalJSON ¶
func (v NewCommentNotification) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*NewCommentNotification) UnmarshalEasyJSON ¶
func (v *NewCommentNotification) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*NewCommentNotification) UnmarshalJSON ¶
func (v *NewCommentNotification) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type NewFollowerNotification ¶
type NewFollowerNotification struct {
FollowerID int `json:"follower_id"`
}
func (NewFollowerNotification) MarshalEasyJSON ¶
func (v NewFollowerNotification) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (NewFollowerNotification) MarshalJSON ¶
func (v NewFollowerNotification) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*NewFollowerNotification) UnmarshalEasyJSON ¶
func (v *NewFollowerNotification) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*NewFollowerNotification) UnmarshalJSON ¶
func (v *NewFollowerNotification) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type NewLikeNotification ¶
func (NewLikeNotification) MarshalEasyJSON ¶
func (v NewLikeNotification) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (NewLikeNotification) MarshalJSON ¶
func (v NewLikeNotification) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*NewLikeNotification) UnmarshalEasyJSON ¶
func (v *NewLikeNotification) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*NewLikeNotification) UnmarshalJSON ¶
func (v *NewLikeNotification) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type NewPinNotification ¶
type NewPinNotification struct {
PinID int `json:"pin_id"`
}
func (NewPinNotification) MarshalEasyJSON ¶
func (v NewPinNotification) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (NewPinNotification) MarshalJSON ¶
func (v NewPinNotification) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*NewPinNotification) UnmarshalEasyJSON ¶
func (v *NewPinNotification) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*NewPinNotification) UnmarshalJSON ¶
func (v *NewPinNotification) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Notification ¶
type Notification struct { ID int `json:"id"` UserID int `json:"user_id"` IsRead bool `json:"is_read"` CreatedAt time.Time `json:"created_at"` Type string `json:"type"` Data interface{} `json:"data"` }
func (Notification) MarshalEasyJSON ¶
func (v Notification) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (Notification) MarshalJSON ¶
func (v Notification) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*Notification) UnmarshalEasyJSON ¶
func (v *Notification) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Notification) UnmarshalJSON ¶
func (v *Notification) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Pin ¶
type Pin struct { Id int `json:"id"` Title string `json:"title"` Description string `json:"description"` MediaSource string `json:"media_source"` MediaSourceColor string `json:"media_source_color"` NumLikes int `json:"n_likes"` Liked bool `json:"liked"` Author int `json:"author_id"` }
func (Pin) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Pin) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Pin) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Pin) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Profile ¶
type Profile struct { Id int `json:"id"` Username string `json:"username"` Name string `json:"name"` ProfileImage string `json:"profile_image"` WebsiteUrl string `json:"website_url"` }
func (Profile) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Profile) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Profile) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Profile) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type SearchRes ¶
type SearchRes struct { Pins []Pin `json:"pins"` Boards []Board `json:"boards"` Users []Profile `json:"users"` }
func (SearchRes) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (SearchRes) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*SearchRes) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SearchRes) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Session ¶
func (Session) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Session) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Session) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Session) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type User ¶
type User struct { Id int `json:"id"` Username string `json:"username"` Email string `json:"email"` HashedPassword string `json:"-"` Name string `json:"name"` ProfileImage string `json:"profile_image"` WebsiteUrl string `json:"website_url"` AccountType string `json:"account_type"` }
func (User) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (User) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*User) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*User) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
Source Files ¶
- board.go
- board_easyjson.go
- chat.go
- chat_easyjson.go
- comment.go
- comment_easyjson.go
- image.go
- like.go
- like_easyjson.go
- message.go
- message_easyjson.go
- notification.go
- notification_easyjson.go
- pin.go
- pin_easyjson.go
- profile.go
- profile_easyjson.go
- search-res.go
- search-res_easyjson.go
- session.go
- session_easyjson.go
- user.go
- user_easyjson.go