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 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 PostFull ¶
type PostFull struct {
Thread *Thread `json:"thread,omitempty"`
Forum *Forum `json:"forum,omitempty"`
Author *User `json:"author,omitempty"`
Post Post `json:"post,omitempty"`
}
func (PostFull) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (PostFull) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*PostFull) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*PostFull) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type PostUpdate ¶
func (PostUpdate) MarshalEasyJSON ¶
func (v PostUpdate) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (PostUpdate) MarshalJSON ¶
func (v PostUpdate) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*PostUpdate) UnmarshalEasyJSON ¶
func (v *PostUpdate) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*PostUpdate) UnmarshalJSON ¶
func (v *PostUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SortParams ¶
easyjson:skip
type Status ¶
type Status struct {
Forums int64 `json:"forum"`
Posts int64 `json:"post"`
Threads int64 `json:"thread"`
Users int64 `json:"user"`
}
func (Status) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Status) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Status) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Status) UnmarshalJSON ¶
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