models

package
v0.0.0-...-9e3f5d0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

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

func (*ErrorResponse) Validate

func (m *ErrorResponse) Validate(formats strfmt.Registry) error

Validate validates this error response

type Friend

type Friend struct {

	// email
	Email string `json:"email,omitempty"`
}

Friend The friend email address. swagger:model Friend

func (*Friend) MarshalBinary

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

MarshalBinary interface implementation

func (*Friend) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Friend) Validate

func (m *Friend) Validate(formats strfmt.Registry) error

Validate validates this friend

type Friends

type Friends struct {

	// List of friends.
	Friends []string `json:"friends"`
}

Friends friends swagger:model Friends

func (*Friends) MarshalBinary

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

MarshalBinary interface implementation

func (*Friends) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Friends) Validate

func (m *Friends) Validate(formats strfmt.Registry) error

Validate validates this friends

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

func (*FriendsListResponse) Validate

func (m *FriendsListResponse) Validate(formats strfmt.Registry) error

Validate validates this friends list response

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

func (*ReceiveUpdatesFriends) Validate

func (m *ReceiveUpdatesFriends) Validate(formats strfmt.Registry) error

Validate validates this receive updates friends

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

func (*ReceiveUpdatesFriendsResponse) Validate

func (m *ReceiveUpdatesFriendsResponse) Validate(formats strfmt.Registry) error

Validate validates this receive updates friends response

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

func (*SubscribeFriends) Validate

func (m *SubscribeFriends) Validate(formats strfmt.Registry) error

Validate validates this subscribe friends

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

func (*SuccessResponse) Validate

func (m *SuccessResponse) Validate(formats strfmt.Registry) error

Validate validates this success response

Jump to

Keyboard shortcuts

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