Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddFriendParams ¶
type AddFriendParams struct { FID FriendID `validator:"nonzero"` SID FriendID `validator:"nonzero"` AuthorID UserID `validator:"nonzero"` FollowerID UserID `validator:"nonzero"` }
func (*AddFriendParams) Validate ¶
func (t *AddFriendParams) Validate() error
type CreatePostParams ¶
type CreatePostParams struct { ID PostID `validator:"nonzero"` Text string `validator:"nonzero"` AuthorID UserID `validator:"nonzero"` }
func (*CreatePostParams) Validate ¶
func (p *CreatePostParams) Validate() error
type Dialog ¶
type Message ¶
type Post ¶
type Post struct { ID PostID `validator:"nonzero"` Text string `validator:"nonzero"` AuthorID UserID `validator:"nonzero"` }
func (*Post) MarshalBinary ¶
func (*Post) UnmarshalBinary ¶
type PostAction ¶
func (*PostAction) MarshalBinary ¶
func (p *PostAction) MarshalBinary() ([]byte, error)
func (*PostAction) UnmarshalBinary ¶
func (p *PostAction) UnmarshalBinary(data []byte) error
type TarantoolUser ¶
type TarantoolUser struct { UserID string `json:"id"` FirstName string `json:"first_name"` SecondName string `json:"second_name"` Username string `json:"username"` HashedPassword string `json:"hashed_password"` Sex string `json:"sex"` Biography string `json:"biography"` City string `json:"city"` }
func (*TarantoolUser) DecodeMsgpack ¶
func (t *TarantoolUser) DecodeMsgpack(d *msgpack.Decoder) error
type Token ¶
type User ¶
type User struct { UserID UserID `json:"id"` Username string `json:"username"` HashedPassword string `json:"hashed_password"` FirstName string `json:"first_name"` SecondName string `json:"second_name"` Sex string `json:"sex"` Birthdate time.Time Biography string `json:"biography"` City string `json:"city"` }
type UserRegister ¶
type UserRegister struct { ID string `validator:"nonzero"` Username string `validator:"nonzero"` HashedPassword string `validator:"nonzero"` FirstName string `validator:"nonzero"` SecondName string `validator:"nonzero"` Sex string `validator:"nonzero"` Birthdate time.Time `validator:"nonzero"` Biography string `validator:"nonzero"` City string `validator:"nonzero"` }
func (*UserRegister) Validate ¶
func (u *UserRegister) Validate() error
Click to show internal directories.
Click to hide internal directories.