Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type ErrorResponse ¶
type ErrorResponse struct {
Message string `json:"message"`
}
func (ErrorResponse) MarshalEasyJSON ¶
func (v ErrorResponse) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ErrorResponse) MarshalJSON ¶
func (v ErrorResponse) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ErrorResponse) UnmarshalEasyJSON ¶
func (v *ErrorResponse) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ErrorResponse) UnmarshalJSON ¶
func (v *ErrorResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Forum ¶
type Forum struct { ID int `json:"-"` Title string `json:"title"` User string `json:"user"` Slug string `json:"slug"` Posts int `json:"posts,omitempty"` Threads int `json:"threads,omitempty"` }
func (Forum) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Forum) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Forum) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Forum) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Info ¶
type Info struct { Users int64 `json:"user"` Forums int64 `json:"forum"` Threads int64 `json:"thread"` Posts int64 `json:"post"` }
func (Info) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Info) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Info) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Info) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Post ¶
type Post struct { ID int `json:"id,omitempty"` Parent int `json:"parent,omitempty"` Author string `json:"author"` Message string `json:"message"` IsEdited bool `json:"isEdited,omitempty"` Forum string `json:"forum,omitempty"` Thread int `json:"thread,omitempty"` Created time.Time `json:"created,omitempty"` Path pgtype.Int4Array `json:"path,omitempty"` }
func (Post) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Post) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Post) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Post) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type PostDetailed ¶
type PostDetailed struct { Thread *Thread `json:"thread,omitempty"` Forum *Forum `json:"forum,omitempty"` Author *User `json:"author,omitempty"` Post Post `json:"post,omitempty"` }
func (PostDetailed) MarshalEasyJSON ¶
func (v PostDetailed) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (PostDetailed) MarshalJSON ¶
func (v PostDetailed) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*PostDetailed) UnmarshalEasyJSON ¶
func (v *PostDetailed) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*PostDetailed) UnmarshalJSON ¶
func (v *PostDetailed) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type RequestParameters ¶
type RequestParameters struct { Desc bool `json:"desc"` Limit int `json:"limit"` Since string `json:"since"` Sort string `json:"sort"` SinceInt int `json:"sinceInt"` }
func (RequestParameters) MarshalEasyJSON ¶
func (v RequestParameters) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (RequestParameters) MarshalJSON ¶
func (v RequestParameters) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*RequestParameters) UnmarshalEasyJSON ¶
func (v *RequestParameters) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*RequestParameters) UnmarshalJSON ¶
func (v *RequestParameters) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Thread ¶
type Thread struct { ID int `json:"id,omitempty"` Title string `json:"title"` Author string `json:"author"` Forum string `json:"forum"` Message string `json:"message"` Votes int `json:"votes,omitempty"` Slug string `json:"slug,omitempty"` Created time.Time `json:"created,omitempty"` }
func (Thread) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Thread) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Thread) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Thread) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type User ¶
type User struct { ID int `json:"-"` NickName string `json:"nickname,omitempty"` FullName string `json:"fullname"` About string `json:"about,omitempty"` Email string `json:"email"` }
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
type Vote ¶
type Vote struct { Nickname string `json:"nickname"` Voice int `json:"voice"` Thread int `json:"-"` }
func (Vote) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Vote) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Vote) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Vote) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
Source Files
¶
- errorResponse.go
- errorResponse_easyjson.go
- errors.go
- forum.go
- forum_easyjson.go
- info.go
- info_easyjson.go
- post.go
- post_detailed.go
- post_detailed_easyjson.go
- post_easyjson.go
- requestParameters.go
- requestParameters_easyjson.go
- thread.go
- thread_easyjson.go
- user.go
- user_easyjson.go
- vote.go
- vote_easyjson.go