Documentation
¶
Index ¶
- func SerializeError(err *CommonError) []byte
- type CommonError
- type CommonResponse
- type CommonResponseTyped
- type Error
- type ProfileAvatar
- func (i *ProfileAvatar) GetID() int64
- func (i *ProfileAvatar) GetOwnerID() int64
- func (i *ProfileAvatar) MarshalTo() ([]byte, error)
- func (i *ProfileAvatar) SetID(id int64)
- func (i *ProfileAvatar) SetOwnerID(id int64)
- func (i *ProfileAvatar) UnmarshalFrom(payload []byte) error
- func (i *ProfileAvatar) Validate() *CommonError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SerializeError ¶
func SerializeError(err *CommonError) []byte
Types ¶
type CommonError ¶
type CommonError struct {
Errors []Error `json:"errors,omitempty"`
}
func (*CommonError) Err ¶
func (c *CommonError) Err() error
type CommonResponse ¶
type CommonResponse struct {
Success any `json:"success,omitempty"`
Error *CommonError `json:"error,omitempty"`
}
type CommonResponseTyped ¶
type CommonResponseTyped[T any] struct { Success T `json:"success,omitempty"` Error *CommonError `json:"error,omitempty"` }
type ProfileAvatar ¶
type ProfileAvatar struct {
ID int64 `json:"id"`
URL string `json:"url"`
DisplayName string `json:"display_name"`
ImageURL string `json:"image_url_100"`
ClickURL string `json:"click_url"`
IsVerified bool `json:"is_verified"`
LastOnline string `json:"last_online"`
Location string `json:"location"`
}
User Identity
func (*ProfileAvatar) GetID ¶
func (i *ProfileAvatar) GetID() int64
func (*ProfileAvatar) GetOwnerID ¶
func (i *ProfileAvatar) GetOwnerID() int64
func (*ProfileAvatar) MarshalTo ¶
func (i *ProfileAvatar) MarshalTo() ([]byte, error)
func (*ProfileAvatar) SetID ¶
func (i *ProfileAvatar) SetID(id int64)
func (*ProfileAvatar) SetOwnerID ¶
func (i *ProfileAvatar) SetOwnerID(id int64)
func (*ProfileAvatar) UnmarshalFrom ¶
func (i *ProfileAvatar) UnmarshalFrom(payload []byte) error
func (*ProfileAvatar) Validate ¶
func (i *ProfileAvatar) Validate() *CommonError
Click to show internal directories.
Click to hide internal directories.