models

package
v0.0.0-...-6f578bd Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2019 License: MIT Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Forum

type Forum struct {
	Posts uint64 `json:"posts,omitempty"`

	Slug string `json:"slug"`

	Threads uint32 `json:"threads,omitempty"`

	Title string `json:"title"`

	User string `json:"user"`
}

func (*Forum) MarshalBinary

func (m *Forum) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Forum) UnmarshalBinary

func (m *Forum) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

type ForumsArray

type ForumsArray []Forum

type Post

type Post struct {
	Author string `json:"author"`

	Created string `json:"created,omitempty"`

	Forum string `json:"forum,omitempty"`

	ID uint64 `json:"id,omitempty"`

	IsEdited bool `json:"isEdited,omitempty"`

	Message string `json:"message"`

	Parent uint64 `json:"parent,omitempty"`

	Thread uint64 `json:"thread,omitempty"`

	Path []uint64 `json:",omitempty"`
}

func (*Post) MarshalBinary

func (m *Post) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Post) UnmarshalBinary

func (m *Post) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

type PostDateTime

type PostDateTime *strfmt.DateTime

type PostsArray

type PostsArray []Post

type Thread

type Thread struct {
	Author string `json:"author"`

	Created string `json:"created,omitempty"`

	Forum string `json:"forum,omitempty"`

	ID uint64 `json:"id,omitempty"`

	Message string `json:"message"`

	Slug string `json:"slug,omitempty"`

	Title string `json:"title"`

	Votes int64 `json:"votes,omitempty"`
}

func (*Thread) MarshalBinary

func (m *Thread) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Thread) UnmarshalBinary

func (m *Thread) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

type ThreadsArray

type ThreadsArray []Thread

type User

type User struct {
	About string `json:"about"`

	Email string `json:"email"`

	Fullname string `json:"fullname"`

	Nickname string `json:"nickname"`
}

func (*User) MarshalBinary

func (m *User) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*User) UnmarshalBinary

func (m *User) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

type UsersArray

type UsersArray []User

type Vote

type Vote struct {
	Nickname string `json:"nickname"`

	Voice int32 `json:"voice"`
}

func (*Vote) MarshalBinary

func (m *Vote) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Vote) UnmarshalBinary

func (m *Vote) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

Jump to

Keyboard shortcuts

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