models

package
v0.0.0-...-f616806 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DateTime

type DateTime strfmt.DateTime

DateTime DateTime DateTime is a time but it serializes to ISO8601 format with millis It knows how to read 3 different variations of a RFC3339 date time. Most APIs we encounter want either millisecond or second precision times. This just tries to make it worry-free. swagger:model DateTime

func (*DateTime) MarshalBinary

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

MarshalBinary interface implementation

func (DateTime) MarshalJSON

func (m DateTime) MarshalJSON() ([]byte, error)

MarshalJSON retrieves a DateTime value as JSON output

func (*DateTime) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DateTime) UnmarshalJSON

func (m *DateTime) UnmarshalJSON(b []byte) error

UnmarshalJSON sets a DateTime value from JSON input

func (DateTime) Validate

func (m DateTime) Validate(formats strfmt.Registry) error

Validate validates this date time

type DeleteUserBadRequestBody

type DeleteUserBadRequestBody struct {

	// description of the error
	// Required: true
	Error *string `json:"error"`
}

DeleteUserBadRequestBody DeleteUserBadRequestBody DeleteUserBadRequestBody DeleteUserBadRequestBody delete user bad request body swagger:model DeleteUserBadRequestBody

func (*DeleteUserBadRequestBody) MarshalBinary

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

MarshalBinary interface implementation

func (*DeleteUserBadRequestBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DeleteUserBadRequestBody) Validate

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

Validate validates this delete user bad request body

type DeleteUserForbiddenBody

type DeleteUserForbiddenBody struct {

	// description of the error
	// Required: true
	Error *string `json:"error"`
}

DeleteUserForbiddenBody DeleteUserForbiddenBody DeleteUserForbiddenBody DeleteUserForbiddenBody DeleteUserForbiddenBody delete user forbidden body swagger:model DeleteUserForbiddenBody

func (*DeleteUserForbiddenBody) MarshalBinary

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

MarshalBinary interface implementation

func (*DeleteUserForbiddenBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DeleteUserForbiddenBody) Validate

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

Validate validates this delete user forbidden body

type DeleteUserInternalServerErrorBody

type DeleteUserInternalServerErrorBody struct {

	// description of the error
	// Required: true
	Error *string `json:"error"`
}

DeleteUserInternalServerErrorBody DeleteUserInternalServerErrorBody DeleteUserInternalServerErrorBody DeleteUserInternalServerErrorBody DeleteUserInternalServerErrorBody delete user internal server error body swagger:model DeleteUserInternalServerErrorBody

func (*DeleteUserInternalServerErrorBody) MarshalBinary

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

MarshalBinary interface implementation

func (*DeleteUserInternalServerErrorBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DeleteUserInternalServerErrorBody) Validate

Validate validates this delete user internal server error body

type DeleteUserNotAcceptableBody

type DeleteUserNotAcceptableBody struct {

	// description of the error
	// Required: true
	Error *string `json:"error"`
}

DeleteUserNotAcceptableBody DeleteUserNotAcceptableBody DeleteUserNotAcceptableBody delete user not acceptable body swagger:model DeleteUserNotAcceptableBody

func (*DeleteUserNotAcceptableBody) MarshalBinary

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

MarshalBinary interface implementation

func (*DeleteUserNotAcceptableBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DeleteUserNotAcceptableBody) Validate

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

Validate validates this delete user not acceptable body

type DeleteUserNotFoundBody

type DeleteUserNotFoundBody struct {

	// description of the error
	// Required: true
	Error *string `json:"error"`
}

DeleteUserNotFoundBody DeleteUserNotFoundBody DeleteUserNotFoundBody delete user not found body swagger:model DeleteUserNotFoundBody

func (*DeleteUserNotFoundBody) MarshalBinary

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

MarshalBinary interface implementation

func (*DeleteUserNotFoundBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DeleteUserNotFoundBody) Validate

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

Validate validates this delete user not found body

type DeleteUserOKBody

type DeleteUserOKBody struct {

	// error
	// Required: true
	Error *string `json:"error"`
}

DeleteUserOKBody DeleteUserOKBody delete user o k body swagger:model DeleteUserOKBody

func (*DeleteUserOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*DeleteUserOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DeleteUserOKBody) Validate

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

Validate validates this delete user o k body

type DeleteUserUnauthorizedBody

type DeleteUserUnauthorizedBody struct {

	// description of the error
	// Required: true
	Error *string `json:"error"`
}

DeleteUserUnauthorizedBody DeleteUserUnauthorizedBody DeleteUserUnauthorizedBody DeleteUserUnauthorizedBody delete user unauthorized body swagger:model DeleteUserUnauthorizedBody

func (*DeleteUserUnauthorizedBody) MarshalBinary

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

MarshalBinary interface implementation

func (*DeleteUserUnauthorizedBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DeleteUserUnauthorizedBody) Validate

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

Validate validates this delete user unauthorized body

type Gender

type Gender struct {

	// female
	Female bool `json:"female,omitempty"`

	// gender non binary
	GenderNonBinary bool `json:"genderNonBinary,omitempty"`

	// male
	Male bool `json:"male,omitempty"`

	// transgender
	Transgender bool `json:"transgender,omitempty"`
}

Gender Gender Gender Gender Gender Gender Gender Gender Gender gender swagger:model Gender

func (*Gender) MarshalBinary

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

MarshalBinary interface implementation

func (*Gender) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Gender) Validate

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

Validate validates this gender

type GetUserRequestBadRequestBody

type GetUserRequestBadRequestBody struct {

	// description of the error
	// Required: true
	Error *string `json:"error"`
}

GetUserRequestBadRequestBody GetUserRequestBadRequestBody get user request bad request body swagger:model GetUserRequestBadRequestBody

func (*GetUserRequestBadRequestBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetUserRequestBadRequestBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetUserRequestBadRequestBody) Validate

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

Validate validates this get user request bad request body

type GetUserRequestBody

type GetUserRequestBody struct {

	// id of the user account to get
	// in: query
	// Required: true
	ID *uint32 `json:"result"`
}

GetUserRequestBody GetUserRequestBody get user request body swagger:model GetUserRequestBody

func (*GetUserRequestBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetUserRequestBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetUserRequestBody) Validate

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

Validate validates this get user request body

type GetUserRequestForbiddenBody

type GetUserRequestForbiddenBody struct {

	// description of the error
	// Required: true
	Error *string `json:"error"`
}

GetUserRequestForbiddenBody GetUserRequestForbiddenBody get user request forbidden body swagger:model GetUserRequestForbiddenBody

func (*GetUserRequestForbiddenBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetUserRequestForbiddenBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetUserRequestForbiddenBody) Validate

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

Validate validates this get user request forbidden body

type GetUserRequestInternalServerErrorBody

type GetUserRequestInternalServerErrorBody struct {

	// description of the error
	// Required: true
	Error *string `json:"error"`
}

GetUserRequestInternalServerErrorBody GetUserRequestInternalServerErrorBody get user request internal server error body swagger:model GetUserRequestInternalServerErrorBody

func (*GetUserRequestInternalServerErrorBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetUserRequestInternalServerErrorBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetUserRequestInternalServerErrorBody) Validate

Validate validates this get user request internal server error body

type GetUserRequestNotAcceptableBody

type GetUserRequestNotAcceptableBody struct {

	// description of the error
	// Required: true
	Error *string `json:"error"`
}

GetUserRequestNotAcceptableBody GetUserRequestNotAcceptableBody get user request not acceptable body swagger:model GetUserRequestNotAcceptableBody

func (*GetUserRequestNotAcceptableBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetUserRequestNotAcceptableBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetUserRequestNotAcceptableBody) Validate

Validate validates this get user request not acceptable body

type GetUserRequestNotFoundBody

type GetUserRequestNotFoundBody struct {

	// description of the error
	// Required: true
	Error *string `json:"error"`
}

GetUserRequestNotFoundBody GetUserRequestNotFoundBody GetUserRequestNotFoundBody GetUserRequestNotFoundBody get user request not found body swagger:model GetUserRequestNotFoundBody

func (*GetUserRequestNotFoundBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetUserRequestNotFoundBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetUserRequestNotFoundBody) Validate

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

Validate validates this get user request not found body

type GetUserRequestOKBody

type GetUserRequestOKBody struct {

	// error
	// Required: true
	Error *string `json:"error"`

	// user
	// Required: true
	User *UserORM `json:"user"`
}

GetUserRequestOKBody GetUserRequestOKBody GetUserRequestOKBody GetUserRequestOKBody get user request o k body swagger:model GetUserRequestOKBody

func (*GetUserRequestOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetUserRequestOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetUserRequestOKBody) Validate

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

Validate validates this get user request o k body

type GetUserRequestUnauthorizedBody

type GetUserRequestUnauthorizedBody struct {

	// description of the error
	// Required: true
	Error *string `json:"error"`
}

GetUserRequestUnauthorizedBody GetUserRequestUnauthorizedBody get user request unauthorized body swagger:model GetUserRequestUnauthorizedBody

func (*GetUserRequestUnauthorizedBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetUserRequestUnauthorizedBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetUserRequestUnauthorizedBody) Validate

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

Validate validates this get user request unauthorized body

type LoginUserRequestBadRequestBody

type LoginUserRequestBadRequestBody struct {

	// description of the error
	// Required: true
	Error *string `json:"error"`
}

LoginUserRequestBadRequestBody LoginUserRequestBadRequestBody LoginUserRequestBadRequestBody login user request bad request body swagger:model LoginUserRequestBadRequestBody

func (*LoginUserRequestBadRequestBody) MarshalBinary

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

MarshalBinary interface implementation

func (*LoginUserRequestBadRequestBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*LoginUserRequestBadRequestBody) Validate

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

Validate validates this login user request bad request body

type LoginUserRequestBody

type LoginUserRequestBody struct {

	// password
	// Required: true
	Password *string `json:"password"`

	// user name
	// Required: true
	Username *string `json:"username"`
}

LoginUserRequestBody LoginUserRequestBody login user request body swagger:model LoginUserRequestBody

func (*LoginUserRequestBody) MarshalBinary

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

MarshalBinary interface implementation

func (*LoginUserRequestBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*LoginUserRequestBody) Validate

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

Validate validates this login user request body

type LoginUserRequestForbiddenBody

type LoginUserRequestForbiddenBody struct {

	// description of the error
	// Required: true
	Error *string `json:"error"`
}

LoginUserRequestForbiddenBody LoginUserRequestForbiddenBody login user request forbidden body swagger:model LoginUserRequestForbiddenBody

func (*LoginUserRequestForbiddenBody) MarshalBinary

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

MarshalBinary interface implementation

func (*LoginUserRequestForbiddenBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*LoginUserRequestForbiddenBody) Validate

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

Validate validates this login user request forbidden body

type LoginUserRequestInternalServerErrorBody

type LoginUserRequestInternalServerErrorBody struct {

	// description of the error
	// Required: true
	Error *string `json:"error"`
}

LoginUserRequestInternalServerErrorBody LoginUserRequestInternalServerErrorBody login user request internal server error body swagger:model LoginUserRequestInternalServerErrorBody

func (*LoginUserRequestInternalServerErrorBody) MarshalBinary

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

MarshalBinary interface implementation

func (*LoginUserRequestInternalServerErrorBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*LoginUserRequestInternalServerErrorBody) Validate

Validate validates this login user request internal server error body

type LoginUserRequestNotAcceptableBody

type LoginUserRequestNotAcceptableBody struct {

	// description of the error
	// Required: true
	Error *string `json:"error"`
}

LoginUserRequestNotAcceptableBody LoginUserRequestNotAcceptableBody LoginUserRequestNotAcceptableBody LoginUserRequestNotAcceptableBody LoginUserRequestNotAcceptableBody login user request not acceptable body swagger:model LoginUserRequestNotAcceptableBody

func (*LoginUserRequestNotAcceptableBody) MarshalBinary

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

MarshalBinary interface implementation

func (*LoginUserRequestNotAcceptableBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*LoginUserRequestNotAcceptableBody) Validate

Validate validates this login user request not acceptable body

type LoginUserRequestNotFoundBody

type LoginUserRequestNotFoundBody struct {

	// description of the error
	// Required: true
	Error *string `json:"error"`
}

LoginUserRequestNotFoundBody LoginUserRequestNotFoundBody login user request not found body swagger:model LoginUserRequestNotFoundBody

func (*LoginUserRequestNotFoundBody) MarshalBinary

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

MarshalBinary interface implementation

func (*LoginUserRequestNotFoundBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*LoginUserRequestNotFoundBody) Validate

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

Validate validates this login user request not found body

type LoginUserRequestOKBody

type LoginUserRequestOKBody struct {

	// error
	// Required: true
	Error *string `json:"error"`

	// Jwt Token
	// Required: true
	JwtToken *string `json:"token"`
}

LoginUserRequestOKBody LoginUserRequestOKBody LoginUserRequestOKBody LoginUserRequestOKBody login user request o k body swagger:model LoginUserRequestOKBody

func (*LoginUserRequestOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*LoginUserRequestOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*LoginUserRequestOKBody) Validate

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

Validate validates this login user request o k body

type LoginUserRequestUnauthorizedBody

type LoginUserRequestUnauthorizedBody struct {

	// description of the error
	// Required: true
	Error *string `json:"error"`
}

LoginUserRequestUnauthorizedBody LoginUserRequestUnauthorizedBody LoginUserRequestUnauthorizedBody LoginUserRequestUnauthorizedBody LoginUserRequestUnauthorizedBody login user request unauthorized body swagger:model LoginUserRequestUnauthorizedBody

func (*LoginUserRequestUnauthorizedBody) MarshalBinary

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

MarshalBinary interface implementation

func (*LoginUserRequestUnauthorizedBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*LoginUserRequestUnauthorizedBody) Validate

Validate validates this login user request unauthorized body

type SignUpUserReqBadRequestBody

type SignUpUserReqBadRequestBody struct {

	// description of the error
	// Required: true
	Error *string `json:"error"`
}

SignUpUserReqBadRequestBody SignUpUserReqBadRequestBody sign up user req bad request body swagger:model SignUpUserReqBadRequestBody

func (*SignUpUserReqBadRequestBody) MarshalBinary

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

MarshalBinary interface implementation

func (*SignUpUserReqBadRequestBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SignUpUserReqBadRequestBody) Validate

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

Validate validates this sign up user req bad request body

type SignUpUserReqBody

type SignUpUserReqBody struct {

	// user email address to create
	// Required: true
	Email *string `json:"email"`

	// user first name
	// Required: true
	FirstName *string `json:"firstname"`

	// user last name
	// Required: true
	LastName *string `json:"lastname"`

	// user password to create
	// Required: true
	Password *string `json:"password"`

	// user username to create
	// Required: true
	Username *string `json:"username"`
}

SignUpUserReqBody SignUpUserReqBody sign up user req body swagger:model SignUpUserReqBody

func (*SignUpUserReqBody) MarshalBinary

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

MarshalBinary interface implementation

func (*SignUpUserReqBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SignUpUserReqBody) Validate

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

Validate validates this sign up user req body

type SignUpUserReqForbiddenBody

type SignUpUserReqForbiddenBody struct {

	// error
	// Required: true
	Error *string `json:"error"`
}

SignUpUserReqForbiddenBody SignUpUserReqForbiddenBody SignUpUserReqForbiddenBody SignUpUserReqForbiddenBody SignUpUserReqForbiddenBody SignUpUserReqForbiddenBody SignUpUserReqForbiddenBody sign up user req forbidden body swagger:model SignUpUserReqForbiddenBody

func (*SignUpUserReqForbiddenBody) MarshalBinary

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

MarshalBinary interface implementation

func (*SignUpUserReqForbiddenBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SignUpUserReqForbiddenBody) Validate

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

Validate validates this sign up user req forbidden body

type SignUpUserReqInternalServerErrorBody

type SignUpUserReqInternalServerErrorBody struct {

	// description of the error
	// Required: true
	Error *string `json:"error"`
}

SignUpUserReqInternalServerErrorBody SignUpUserReqInternalServerErrorBody SignUpUserReqInternalServerErrorBody sign up user req internal server error body swagger:model SignUpUserReqInternalServerErrorBody

func (*SignUpUserReqInternalServerErrorBody) MarshalBinary

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

MarshalBinary interface implementation

func (*SignUpUserReqInternalServerErrorBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SignUpUserReqInternalServerErrorBody) Validate

Validate validates this sign up user req internal server error body

type SignUpUserReqNotAcceptableBody

type SignUpUserReqNotAcceptableBody struct {

	// description of the error
	// Required: true
	Error *string `json:"error"`
}

SignUpUserReqNotAcceptableBody SignUpUserReqNotAcceptableBody SignUpUserReqNotAcceptableBody SignUpUserReqNotAcceptableBody sign up user req not acceptable body swagger:model SignUpUserReqNotAcceptableBody

func (*SignUpUserReqNotAcceptableBody) MarshalBinary

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

MarshalBinary interface implementation

func (*SignUpUserReqNotAcceptableBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SignUpUserReqNotAcceptableBody) Validate

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

Validate validates this sign up user req not acceptable body

type SignUpUserReqNotFoundBody

type SignUpUserReqNotFoundBody struct {

	// description of the error
	// Required: true
	Error *string `json:"error"`
}

SignUpUserReqNotFoundBody SignUpUserReqNotFoundBody sign up user req not found body swagger:model SignUpUserReqNotFoundBody

func (*SignUpUserReqNotFoundBody) MarshalBinary

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

MarshalBinary interface implementation

func (*SignUpUserReqNotFoundBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SignUpUserReqNotFoundBody) Validate

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

Validate validates this sign up user req not found body

type SignUpUserReqOKBody

type SignUpUserReqOKBody struct {

	// error
	// Required: true
	Error *string `json:"error"`

	// user account id
	// Required: true
	ID *uint32 `json:"id"`

	// JWT Token
	// Required: true
	JwtToken *string `json:"jwt"`
}

SignUpUserReqOKBody SignUpUserReqOKBody SignUpUserReqOKBody sign up user req o k body swagger:model SignUpUserReqOKBody

func (*SignUpUserReqOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*SignUpUserReqOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SignUpUserReqOKBody) Validate

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

Validate validates this sign up user req o k body

type SignUpUserReqUnauthorizedBody

type SignUpUserReqUnauthorizedBody struct {

	// description of the error
	// Required: true
	Error *string `json:"error"`
}

SignUpUserReqUnauthorizedBody SignUpUserReqUnauthorizedBody SignUpUserReqUnauthorizedBody SignUpUserReqUnauthorizedBody SignUpUserReqUnauthorizedBody sign up user req unauthorized body swagger:model SignUpUserReqUnauthorizedBody

func (*SignUpUserReqUnauthorizedBody) MarshalBinary

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

MarshalBinary interface implementation

func (*SignUpUserReqUnauthorizedBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SignUpUserReqUnauthorizedBody) Validate

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

Validate validates this sign up user req unauthorized body

type Timestamp

type Timestamp struct {

	// Non-negative fractions of a second at nanosecond resolution. Negative
	// second values with fractions must still have non-negative nanos values
	// that count forward in time. Must be from 0 to 999,999,999
	// inclusive.
	Nanos int32 `json:"nanos,omitempty"`

	// Represents seconds of UTC time since Unix epoch
	// 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
	// 9999-12-31T23:59:59Z inclusive.
	Seconds int64 `json:"seconds,omitempty"`
}

Timestamp Timestamp Timestamp Timestamp Timestamp Timestamp Timestamp Timestamp Timestamp A Timestamp represents a point in time independent of any time zone or local calendar, encoded as a count of seconds and fractions of seconds at nanosecond resolution. The count is relative to an epoch at UTC midnight on January 1, 1970, in the proleptic Gregorian calendar which extends the Gregorian calendar backwards to year one.

All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap second table is needed for interpretation, using a [24-hour linear smear](https://developers.google.com/time/smear).

The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By restricting to that range, we ensure that we can convert to and from [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings.

Examples

Example 1: Compute Timestamp from POSIX `time()`.

Timestamp timestamp; timestamp.set_seconds(time(NULL)); timestamp.set_nanos(0);

Example 2: Compute Timestamp from POSIX `gettimeofday()`.

struct timeval tv; gettimeofday(&tv, NULL);

Timestamp timestamp; timestamp.set_seconds(tv.tv_sec); timestamp.set_nanos(tv.tv_usec * 1000);

Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.

FILETIME ft; GetSystemTimeAsFileTime(&ft); UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime;

A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. Timestamp timestamp; timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));

Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.

long millis = System.currentTimeMillis();

Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) .setNanos((int) ((millis % 1000) * 1000000)).build();

Example 5: Compute Timestamp from current time in Python.

timestamp = Timestamp() timestamp.GetCurrentTime()

JSON Mapping

In JSON format, the Timestamp type is encoded as a string in the [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" where {year} is always expressed using four digits while {month}, {day}, {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone is required. A proto3 JSON serializer should always use UTC (as indicated by "Z") when printing the Timestamp type and a proto3 JSON parser should be able to accept both UTC and other timezones (as indicated by an offset).

For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past 01:30 UTC on January 15, 2017.

In JavaScript, one can convert a Date object to this format using the standard [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) method. In Python, a standard `datetime.datetime` object can be converted to this format using [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use the Joda Time's [`ISODateTimeFormat.dateTime()`]( http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D ) to obtain a formatter capable of generating timestamps in this format. swagger:model Timestamp

func (*Timestamp) MarshalBinary

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

MarshalBinary interface implementation

func (*Timestamp) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Timestamp) Validate

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

Validate validates this timestamp

type UpdateSwaggerUserBody

type UpdateSwaggerUserBody struct {

	// result
	// Required: true
	Result *User `json:"result"`
}

UpdateSwaggerUserBody UpdateSwaggerUserBody UpdateSwaggerUserBody update swagger user body swagger:model UpdateSwaggerUserBody

func (*UpdateSwaggerUserBody) MarshalBinary

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

MarshalBinary interface implementation

func (*UpdateSwaggerUserBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UpdateSwaggerUserBody) Validate

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

Validate validates this update swagger user body

type UpdateSwaggerUserOKBody

type UpdateSwaggerUserOKBody struct {

	// error
	// Required: true
	Error *string `json:"error"`
}

UpdateSwaggerUserOKBody UpdateSwaggerUserOKBody update swagger user o k body swagger:model UpdateSwaggerUserOKBody

func (*UpdateSwaggerUserOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*UpdateSwaggerUserOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UpdateSwaggerUserOKBody) Validate

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

Validate validates this update swagger user o k body

type UpdateUserBadRequestBody

type UpdateUserBadRequestBody struct {

	// description of the error
	// Required: true
	Error *string `json:"error"`
}

UpdateUserBadRequestBody UpdateUserBadRequestBody update user bad request body swagger:model UpdateUserBadRequestBody

func (*UpdateUserBadRequestBody) MarshalBinary

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

MarshalBinary interface implementation

func (*UpdateUserBadRequestBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UpdateUserBadRequestBody) Validate

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

Validate validates this update user bad request body

type UpdateUserBody

type UpdateUserBody struct {

	// result
	// Required: true
	Result *User `json:"result"`
}

UpdateUserBody UpdateUserBody UpdateUserBody update user body swagger:model UpdateUserBody

func (*UpdateUserBody) MarshalBinary

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

MarshalBinary interface implementation

func (*UpdateUserBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UpdateUserBody) Validate

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

Validate validates this update user body

type UpdateUserForbiddenBody

type UpdateUserForbiddenBody struct {

	// description of the error
	// Required: true
	Error *string `json:"error"`
}

UpdateUserForbiddenBody UpdateUserForbiddenBody UpdateUserForbiddenBody UpdateUserForbiddenBody update user forbidden body swagger:model UpdateUserForbiddenBody

func (*UpdateUserForbiddenBody) MarshalBinary

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

MarshalBinary interface implementation

func (*UpdateUserForbiddenBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UpdateUserForbiddenBody) Validate

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

Validate validates this update user forbidden body

type UpdateUserInternalServerErrorBody

type UpdateUserInternalServerErrorBody struct {

	// description of the error
	// Required: true
	Error *string `json:"error"`
}

UpdateUserInternalServerErrorBody UpdateUserInternalServerErrorBody UpdateUserInternalServerErrorBody UpdateUserInternalServerErrorBody UpdateUserInternalServerErrorBody update user internal server error body swagger:model UpdateUserInternalServerErrorBody

func (*UpdateUserInternalServerErrorBody) MarshalBinary

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

MarshalBinary interface implementation

func (*UpdateUserInternalServerErrorBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UpdateUserInternalServerErrorBody) Validate

Validate validates this update user internal server error body

type UpdateUserNotAcceptableBody

type UpdateUserNotAcceptableBody struct {

	// description of the error
	// Required: true
	Error *string `json:"error"`
}

UpdateUserNotAcceptableBody UpdateUserNotAcceptableBody UpdateUserNotAcceptableBody update user not acceptable body swagger:model UpdateUserNotAcceptableBody

func (*UpdateUserNotAcceptableBody) MarshalBinary

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

MarshalBinary interface implementation

func (*UpdateUserNotAcceptableBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UpdateUserNotAcceptableBody) Validate

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

Validate validates this update user not acceptable body

type UpdateUserNotFoundBody

type UpdateUserNotFoundBody struct {

	// description of the error
	// Required: true
	Error *string `json:"error"`
}

UpdateUserNotFoundBody UpdateUserNotFoundBody update user not found body swagger:model UpdateUserNotFoundBody

func (*UpdateUserNotFoundBody) MarshalBinary

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

MarshalBinary interface implementation

func (*UpdateUserNotFoundBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UpdateUserNotFoundBody) Validate

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

Validate validates this update user not found body

type UpdateUserOKBody

type UpdateUserOKBody struct {

	// error
	// Required: true
	Error *string `json:"error"`
}

UpdateUserOKBody UpdateUserOKBody UpdateUserOKBody update user o k body swagger:model UpdateUserOKBody

func (*UpdateUserOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*UpdateUserOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UpdateUserOKBody) Validate

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

Validate validates this update user o k body

type UpdateUserUnauthorizedBody

type UpdateUserUnauthorizedBody struct {

	// description of the error
	// Required: true
	Error *string `json:"error"`
}

UpdateUserUnauthorizedBody UpdateUserUnauthorizedBody update user unauthorized body swagger:model UpdateUserUnauthorizedBody

func (*UpdateUserUnauthorizedBody) MarshalBinary

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

MarshalBinary interface implementation

func (*UpdateUserUnauthorizedBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UpdateUserUnauthorizedBody) Validate

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

Validate validates this update user unauthorized body

type User

type User struct {

	// authnid
	Authnid uint32 `json:"authnid,omitempty"`

	// birth date
	BirthDate string `json:"birthDate,omitempty"`

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

	// first name
	FirstName string `json:"firstName,omitempty"`

	// Id
	ID uint32 `json:"id,omitempty"`

	// is active
	IsActive bool `json:"isActive,omitempty"`

	// is online
	IsOnline bool `json:"isOnline,omitempty"`

	// last name
	LastName string `json:"lastName,omitempty"`

	// password
	Password string `json:"password,omitempty"`

	// username
	Username string `json:"username,omitempty"`

	// created at
	CreatedAt *Timestamp `json:"created_at,omitempty"`

	// deleted at
	DeletedAt *Timestamp `json:"deleted_at,omitempty"`

	// gender
	Gender *Gender `json:"gender,omitempty"`

	// updated at
	UpdatedAt *Timestamp `json:"updated_at,omitempty"`
}

User User User User User User User User 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 UserORM

type UserORM struct {

	// authnid
	Authnid uint32 `json:"Authnid,omitempty"`

	// birth date
	BirthDate string `json:"BirthDate,omitempty"`

	// created at
	// Format: date-time
	// Format: date-time
	// Format: date-time
	// Format: date-time
	// Format: date-time
	// Format: date-time
	// Format: date-time
	// Format: date-time
	// Format: date-time
	CreatedAt strfmt.DateTime `json:"CreatedAt,omitempty"`

	// deleted at
	// Format: date-time
	// Format: date-time
	// Format: date-time
	// Format: date-time
	// Format: date-time
	// Format: date-time
	// Format: date-time
	// Format: date-time
	// Format: date-time
	DeletedAt strfmt.DateTime `json:"DeletedAt,omitempty"`

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

	// first name
	FirstName string `json:"FirstName,omitempty"`

	// Id
	ID uint32 `json:"Id,omitempty"`

	// is active
	IsActive bool `json:"IsActive,omitempty"`

	// is online
	IsOnline bool `json:"IsOnline,omitempty"`

	// last name
	LastName string `json:"LastName,omitempty"`

	// password
	Password string `json:"Password,omitempty"`

	// updated at
	// Format: date-time
	// Format: date-time
	// Format: date-time
	// Format: date-time
	// Format: date-time
	// Format: date-time
	// Format: date-time
	// Format: date-time
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"UpdatedAt,omitempty"`

	// username
	Username string `json:"Username,omitempty"`
}

UserORM UserORM UserORM UserORM UserORM UserORM UserORM UserORM UserORM user o r m swagger:model UserORM

func (*UserORM) MarshalBinary

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

MarshalBinary interface implementation

func (*UserORM) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserORM) Validate

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

Validate validates this user o r m

Source Files

Jump to

Keyboard shortcuts

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