Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct {
// Текстовое описание ошибки.
// В процессе проверки API никаких проверок на содерижимое данного описание не делается.
//
// Read Only: true
Message string `json:"message,omitempty"`
}
Error error
swagger:model Error
func (Error) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Error) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Error) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Error) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Forum ¶
type Forum struct {
// Общее кол-во сообщений в данном форуме.
//
// Read Only: true
Posts int64 `json:"posts,omitempty"`
// Человекопонятный URL (https://ru.wikipedia.org/wiki/%D0%A1%D0%B5%D0%BC%D0%B0%D0%BD%D1%82%D0%B8%D1%87%D0%B5%D1%81%D0%BA%D0%B8%D0%B9_URL), уникальное поле.
// Required: true
// Pattern: ^(\d|\w|-|_)*(\w|-|_)(\d|\w|-|_)*$
Slug string `json:"slug"`
// Общее кол-во ветвей обсуждения в данном форуме.
//
// Read Only: true
Threads int32 `json:"threads,omitempty"`
// Название форума.
// Required: true
Title string `json:"title"`
// Nickname пользователя, который отвечает за форум.
// Required: true
User string `json:"user"`
}
Forum Информация о форуме.
swagger:model Forum
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 {
// Автор, написавший данное сообщение.
// Required: true
Author string `json:"author"`
// Дата создания сообщения на форуме.
// Read Only: true
// Format: date-time
Created time.Time `json:"created,omitempty"`
// Идентификатор форума (slug) данного сообещния.
// Read Only: true
Forum string `json:"forum,omitempty"`
// Идентификатор данного сообщения.
// Read Only: true
ID int64 `json:"id,omitempty"`
// Истина, если данное сообщение было изменено.
// Read Only: true
IsEdited bool `json:"isEdited,omitempty"`
// Собственно сообщение форума.
// Required: true
Message string `json:"message"`
// Идентификатор родительского сообщения (0 - корневое сообщение обсуждения).
//
Parent int64 `json:"parent,omitempty"`
// Идентификатор ветви (id) обсуждения данного сообещния.
// Read Only: true
Thread int32 `json:"thread,omitempty"`
}
Post Сообщение внутри ветки обсуждения на форуме.
swagger:model Post
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 {
// author
Author *User `json:"author,omitempty"`
// forum
Forum *Forum `json:"forum,omitempty"`
// post
Post *Post `json:"post,omitempty"`
// thread
Thread *Thread `json:"thread,omitempty"`
}
PostFull Полная информация о сообщении, включая связанные объекты.
swagger:model PostFull
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 ¶
type PostUpdate struct {
// Собственно сообщение форума.
Message string `json:"message,omitempty"`
}
PostUpdate Сообщение для обновления сообщения внутри ветки на форуме. Пустые параметры остаются без изменений.
swagger:model 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 Posts ¶
type Posts []*Post
Posts posts
swagger:model Posts
func (Posts) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Posts) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Posts) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Posts) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Status ¶
type Status struct {
// Кол-во разделов в базе данных.
// Required: true
Forum int32 `json:"forum"`
// Кол-во сообщений в базе данных.
// Required: true
Post int64 `json:"post"`
// Кол-во веток обсуждения в базе данных.
// Required: true
Thread int32 `json:"thread"`
// Кол-во пользователей в базе данных.
// Required: true
User int32 `json:"user"`
}
Status status
swagger:model Status
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 {
Author string `json:"author"`
Created time.Time `json:"created,omitempty"`
Forum string `json:"forum,omitempty"`
ID int32 `json:"id,omitempty"`
Message string `json:"message"`
Slug string `json:"slug,omitempty"`
Title string `json:"title"`
Votes int32 `json:"votes,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 ThreadUpdate ¶
type ThreadUpdate struct {
// Описание ветки обсуждения.
Message string `json:"message,omitempty"`
// Заголовок ветки обсуждения.
Title string `json:"title,omitempty"`
}
ThreadUpdate Сообщение для обновления ветки обсуждения на форуме. Пустые параметры остаются без изменений.
swagger:model ThreadUpdate
func (ThreadUpdate) MarshalEasyJSON ¶
func (v ThreadUpdate) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ThreadUpdate) MarshalJSON ¶
func (v ThreadUpdate) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ThreadUpdate) UnmarshalEasyJSON ¶
func (v *ThreadUpdate) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ThreadUpdate) UnmarshalJSON ¶
func (v *ThreadUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Threads ¶
type Threads []*Thread
Threads threads
swagger:model Threads
func (Threads) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Threads) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Threads) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Threads) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type User ¶
type User struct {
// Описание пользователя.
About string `json:"about,omitempty"`
// Почтовый адрес пользователя (уникальное поле).
// Required: true
// Format: email
Email string `json:"email"`
// Полное имя пользователя.
// Required: true
Fullname string `json:"fullname"`
// Имя пользователя (уникальное поле).
// Данное поле допускает только латиницу, цифры и знак подчеркивания.
// Сравнение имени регистронезависимо.
//
// Read Only: true
Nickname string `json:"nickname,omitempty"`
}
User Информация о пользователе.
swagger:model User
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 UserUpdate ¶
type UserUpdate struct {
// Описание пользователя.
About string `json:"about,omitempty"`
// Почтовый адрес пользователя (уникальное поле).
// Format: email
Email strfmt.Email `json:"email,omitempty"`
// Полное имя пользователя.
Fullname string `json:"fullname,omitempty"`
}
UserUpdate Информация о пользователе.
swagger:model UserUpdate
func (UserUpdate) MarshalEasyJSON ¶
func (v UserUpdate) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (UserUpdate) MarshalJSON ¶
func (v UserUpdate) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*UserUpdate) UnmarshalEasyJSON ¶
func (v *UserUpdate) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*UserUpdate) UnmarshalJSON ¶
func (v *UserUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Users ¶
type Users []*User
Users users
swagger:model Users
func (Users) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Users) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Users) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Users) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Vote ¶
type Vote struct {
// Идентификатор пользователя.
// Required: true
Nickname string `json:"nickname"`
// Отданный голос.
// Required: true
// Enum: [-1 1]
Voice int32 `json:"voice"`
}
Vote Информация о голосовании пользователя.
swagger:model Vote
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
¶
- error.go
- error_easyjson.go
- forum.go
- forum_easyjson.go
- post.go
- post_easyjson.go
- post_full.go
- post_full_easyjson.go
- post_update.go
- post_update_easyjson.go
- posts.go
- posts_easyjson.go
- status.go
- status_easyjson.go
- thread.go
- thread_easyjson.go
- thread_update.go
- thread_update_easyjson.go
- threads.go
- threads_easyjson.go
- user.go
- user_easyjson.go
- user_update.go
- user_update_easyjson.go
- users.go
- users_easyjson.go
- vote.go
- vote_easyjson.go