Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBFriends ¶
type DBFriends struct { ID bson.ObjectId `bson:"_id,omitempty"` UserID string `bson:"user_id,omitempty"` Friends []string `bson:"friends,omitempty"` }
DBFriends ... Database Model Friends
type DBUpdates ¶
type DBUpdates struct { ID bson.ObjectId `bson:"_id,omitempty"` UserID string `bson:"user_id,omitempty"` Target []string `bson:"target,omitempty"` }
DBUpdates ... Database Model Updates
type ErrorResponse ¶
type ErrorResponse struct { // The error message. Message string `json:"message,omitempty"` // success. // Required: true Success *bool `json:"success"` // The error type. Type string `json:"type,omitempty"` }
ErrorResponse error response swagger:model ErrorResponse
func (*ErrorResponse) MarshalBinary ¶
func (m *ErrorResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ErrorResponse) UnmarshalBinary ¶
func (m *ErrorResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Friend ¶
type Friend struct { // email Email string `json:"email,omitempty"` }
Friend The friend email address. swagger:model Friend
func (*Friend) MarshalBinary ¶
MarshalBinary interface implementation
func (*Friend) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Friends ¶
type Friends struct { // List of friends. Friends []string `json:"friends"` }
Friends friends swagger:model Friends
func (*Friends) MarshalBinary ¶
MarshalBinary interface implementation
func (*Friends) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type FriendsListResponse ¶
type FriendsListResponse struct { // success. Count int64 `json:"count,omitempty"` // List of friends. // Required: true Friends []string `json:"friends"` // success. // Required: true Success *bool `json:"success"` }
FriendsListResponse List of friends along with the success. swagger:model FriendsListResponse
func (*FriendsListResponse) MarshalBinary ¶
func (m *FriendsListResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*FriendsListResponse) UnmarshalBinary ¶
func (m *FriendsListResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ReceiveUpdatesFriends ¶
type ReceiveUpdatesFriends struct { // Sender. Sender string `json:"sender,omitempty"` // Text Text string `json:"text,omitempty"` }
ReceiveUpdatesFriends receive updates friends swagger:model ReceiveUpdatesFriends
func (*ReceiveUpdatesFriends) MarshalBinary ¶
func (m *ReceiveUpdatesFriends) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ReceiveUpdatesFriends) UnmarshalBinary ¶
func (m *ReceiveUpdatesFriends) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ReceiveUpdatesFriendsResponse ¶
type ReceiveUpdatesFriendsResponse struct { // List of friends. // Required: true Recipients []string `json:"recipients"` // success. // Required: true Success *bool `json:"success"` }
ReceiveUpdatesFriendsResponse List of friends along with the success. swagger:model ReceiveUpdatesFriendsResponse
func (*ReceiveUpdatesFriendsResponse) MarshalBinary ¶
func (m *ReceiveUpdatesFriendsResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ReceiveUpdatesFriendsResponse) UnmarshalBinary ¶
func (m *ReceiveUpdatesFriendsResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SubscribeFriends ¶
type SubscribeFriends struct { // Requestor for the subscription. Requestor string `json:"requestor,omitempty"` // Target of the subscription. Target string `json:"target,omitempty"` }
SubscribeFriends subscribe friends swagger:model SubscribeFriends
func (*SubscribeFriends) MarshalBinary ¶
func (m *SubscribeFriends) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SubscribeFriends) UnmarshalBinary ¶
func (m *SubscribeFriends) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SuccessResponse ¶
type SuccessResponse struct { // success. // Required: true Success *bool `json:"success"` }
SuccessResponse success response swagger:model SuccessResponse
func (*SuccessResponse) MarshalBinary ¶
func (m *SuccessResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SuccessResponse) UnmarshalBinary ¶
func (m *SuccessResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation