models

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2018 License: GPL-3.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 CustomResponseModel

type CustomResponseModel struct {

	// results
	Results []string `json:"results"`

	// Number that was used to generate these results
	Seed int64 `json:"seed,omitempty"`
}

CustomResponseModel custom response model swagger:model CustomResponseModel

func (*CustomResponseModel) MarshalBinary

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

MarshalBinary interface implementation

func (*CustomResponseModel) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CustomResponseModel) Validate

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

Validate validates this custom response model

type ErrorModel

type ErrorModel struct {

	// code
	// Required: true
	Code *int32 `json:"code"`

	// message
	// Required: true
	Message *string `json:"message"`
}

ErrorModel error model swagger:model ErrorModel

func (*ErrorModel) MarshalBinary

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

MarshalBinary interface implementation

func (*ErrorModel) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ErrorModel) Validate

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

Validate validates this error model

type User

type User struct {

	// company
	Company string `json:"Company,omitempty"`

	// age
	// Maximum: 255
	// Minimum: 0
	Age *int32 `json:"age,omitempty"`

	// country
	Country string `json:"country,omitempty"`

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

	// Random list of UUIDs from the same response. To increase the chance of having friends request for bigger batches.
	Friends []string `json:"friends"`

	// UUID for this user
	// Required: true
	// Format: uuid
	ID *strfmt.UUID `json:"id"`

	// First and Last name
	// Required: true
	Name *string `json:"name"`

	// position
	Position string `json:"position,omitempty"`
}

User user swagger:model User

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

func (*User) Validate

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

Validate validates this user

type UserResponseModel

type UserResponseModel struct {

	// Use this to get the next users from the deterministic series
	Nextseed int64 `json:"nextseed,omitempty"`

	// Number that was used to generate these users
	Seed int64 `json:"seed,omitempty"`

	// users
	Users []*User `json:"users"`
}

UserResponseModel user response model swagger:model UserResponseModel

func (*UserResponseModel) MarshalBinary

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

MarshalBinary interface implementation

func (*UserResponseModel) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserResponseModel) Validate

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

Validate validates this user response model

Jump to

Keyboard shortcuts

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